Example Code

2-Player Chess in LabVIEW

Code and Documents

Attachment

This example a simple 2-player chess application. This example does not allow computer opponent play or saving and does not notify you when a player is in check, checkmate, or stalemate. This example primarily shows how to customize LabVIEW controls and indicators to create an unique user interface.
This example follows the rules of chess with the following exceptions:
- Castling (moving the king to exchange places with a rook) is not possible.
- When a pawn reaches the other side of the board, it does not change into another piece

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

Comments
IanCredible
Member
Member
on

The controls of this example are particuarly of interest to me, thank you for posting!

 

The inticators "Buttons" and "Indicators" appear to be linked together but I can't deduce how. I recognize that a Picture Ring U16 array is being used in the background but cannot figure out how there are 2 boolean arrays "grouped" on top of it and translucent. Can anyone help explain or link me to a source where I can learn more?

Contributors