LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LABVIEW Morpion

Bonjour,

Nous souhaitons faire un jeu en réseau, le morpion (tic tac toe), or dans le code que nous vous fournissons en pièce jointe, nous avons réussi à faire le jeu mais nous n'arrivons maintenant pas à le faire en réseau, la connexion est établi mais les cases ne s'affiche pas sur l'autre ordi lorsqu'on clique dessus. Pouvons nous avoir de l'aide s'il vous plaît ? 

 

Bonne journée,

Lola

0 Kudos
Message 1 of 5
(457 Views)

What is running on the other side of the network connection?

Your read from TCP but you never even use the output. All you ever write to the network is a flattened boolean.

 

This entire things looks very convoluted, for example most (all?) of your sequence structures are not needed because dataflow already determines execution order.

 

For some ideas how to design a board using an array of picture rings have a look here. Much simpler than juggling boolean texts!

0 Kudos
Message 2 of 5
(414 Views)

Thank you for your reply, in fact I can't change my programme, I started with Booleans and I have to finish with them, it's part of a project at my school, and the teacher wants to have followed our programme. I'm going to attach my tic-tac-toe which works without the connection, the one I sent was my test for the connection between the two computers and it doesn't work. I looked at your program but it's done with an array, which is different from using booleans 

0 Kudos
Message 3 of 5
(367 Views)

The structure on the front panel is irrelevant for the overall code logic.

 

For the network, you need to transmit which button has been pressed and the the other side needs to parse and validate.

0 Kudos
Message 4 of 5
(347 Views)

I tried again but I still can't get it to work . I managed to make the first player's clicks appear when the second player clicks on the same square as the first, but now I'm stuck :(.I'd like to make the first player's click appear so that I can do the same for the second player turn by turn, but I can't manage it.

Download All
0 Kudos
Message 5 of 5
(287 Views)