Search code examples
vilabview

Tic Tac Toe line cross in front panel LabVIEW


I need to implement a line strike after if a player wins the game. I've gone through the forum and documentation but it's becoming complex.

Gone through message number 3 and the solution given in LabVIEW Forum response.

TODO: After a player won the game, need to strike the sequence. For example: in 3x3 tic tac toe. Player with identity "o" won by having "o" in column 1 - [0,0], [1,0], [2,0] [Row, Column]. Then column 1 should get stricken by decoration line.

Any piece of advice is greatly appreciated.


Solution

  • This is a tricky question in LabVIEW, since you cannot create a decoration dynamically. However, it is possible to hide it and display dynamically. You can then position and resize it with the use of property nodes. Here is sample code for inspiration: enter image description here