11-19-2017 08:20 PM
As a student learning labview is a new start. The project for the course was to make a checkers game, but there was some issues moving decorations when running the program. Could someone offer some help on how to move the checkers pieces on the board while the program is running? I've attached an image to my board.
Thanks!
Solved! Go to Solution.
11-20-2017 12:43 AM - edited 11-20-2017 12:56 AM
@Andy192 wrote:
As a student learning labview is a new start. The project for the course was to make a checkers game, but there was some issues moving decorations when running the program. Could someone offer some help on how to move the checkers pieces on the board while the program is running? I've attached an image to my board.
Thanks!
Edit: You can also use Picture Rings for the 2D control/indicator...
11-20-2017 01:17 AM
No need to move anything. Create a picture ring with all possible views of a square (empty red, empty black, red piece, red king, black piece, black king, etc. etc.) , then create a 2D array of them. A 8x8 numeric array is the corrent board data, determining what to show.
For some ideas, have a look at my old tic-tac-toe example. Maybe it can give you some ideas.
(Of course if you want to animate the moves, you probably need to use a picture control.)
12-01-2017 12:32 PM
Thank you, this is helpful.