Browse Source

Change player

remotes/origin/fdai7775-main-patch-54732
fdai7775 11 months ago
parent
commit
44325c521f
  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");
break;
}
// Wechsle den Spieler
currentPlayer = (currentPlayer == 'X') ? 'O' : 'X';
}
return 0;
}
Loading…
Cancel
Save