Hi all,
I'm starting a new program based upon tick tack toe example.
The idea is to make a knight ride game on a chess board. You shall move the knight from its current position to a next "chess move valid" position and fill the 64 positions.
This part works very fine but I get a weird behavior when I try to allow a move back.
For instance, assume the current step is 3 (0, 1, 2 and 3 are displayed on the screen). When clicking on the "3" button, the knight goes back (button "3" text is cancelled and the previous position is stored as current one.)
This part too works fine.
I get into trouble at that step... If you click on the old "3" position, the one that has been cancelled, you get a message saying that a back move is done.
Under the debbugger, the sender button seems to be the button on which the "2" is displayed...
I'm fully stuck ....
Any help appreciated.
Alain
I'm starting a new program based upon tick tack toe example.
The idea is to make a knight ride game on a chess board. You shall move the knight from its current position to a next "chess move valid" position and fill the 64 positions.
This part works very fine but I get a weird behavior when I try to allow a move back.
For instance, assume the current step is 3 (0, 1, 2 and 3 are displayed on the screen). When clicking on the "3" button, the knight goes back (button "3" text is cancelled and the previous position is stored as current one.)
This part too works fine.
I get into trouble at that step... If you click on the old "3" position, the one that has been cancelled, you get a message saying that a back move is done.
Under the debbugger, the sender button seems to be the button on which the "2" is displayed...
I'm fully stuck ....
Any help appreciated.
Alain