posted 9 years ago
Hi,
I am devoloping online chess game. Now the problem is when pawn promotion takes place player has to select a promoted piece. The execution should pause until player has selected a new piece. I am sharing my code below where this part of the code checks if pawn promotion has taken place. If yes, then it asks player to select a piece (which is second part of the code). The execution should pause until a piece is selected:
Here is the inside of piece selection code:
In above the data must be set before the execution is resumed. This data depends upon the piece selected. So in other way execution should not resume until player has choosen a piece.
Please help me on this.