Browse Source

Change player

remotes/origin/Ariana
Ariana Ginju 12 months ago
committed by David Moeller
parent
commit
421db299f3
  1. 7
      src/main/c/GameTic_Tac_Toe/game.c

7
src/main/c/GameTic_Tac_Toe/game.c

@ -82,3 +82,10 @@ int main() {
printf("Unentschieden!\n"); printf("Unentschieden!\n");
break; break;
} }
// Wechsle den Spieler
currentPlayer = (currentPlayer == 'X') ? 'O' : 'X';
}
return 0;
}
Loading…
Cancel
Save