Example Code

Boxman

Code and Documents

Attachment

Overview
This application is an implementation of the classic game Boxman.

 

Description

Use the arrow buttons on the keyboard to direct the "pig" to push the box to the destination. Most of the internal work is done through flat sequence structures and array storage. Maps are broken down into grids which are stored into 2D arrays.

Notice that the resource (include maps and picture is dynamic loaded).I write another tool(VC++ 6.0) which called boxman_mapeditor to editor and add new maps. Enjoy youself!     Change control: first release.internal version 1.03.

 

Steps to Implement or Execute Code

  1. Download and extract contets of zip
  2. Open boxman1.03.llb
  3. Open boxman1.03.vi
  4. Run vi and play game

Requirements

Software

LabVIEW 9 or later

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors