Advertisement
Alyks

Untitled

Dec 16th, 2020
917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. if (!ate || !canEat(cell)) { // Если в результате хода не была съедена фигура или данная ячейка не может больше есть
  2.     humanTurn = !humanTurn; // То происходит смена хода
  3.     currentPlayer->mustMove = NULL;
  4.     currentPlayer = humanTurn ? player1 : player2;
  5. } else {
  6.     currentPlayer->mustMove = cell; // Иначе полю mustMove будет присвоен указатель на данную ячейку
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement