Browse Source

Update: corrected errors

remotes/origin/Ariana
Ariana Ginju 11 months ago
committed by David Moeller
parent
commit
0221526e8e
  1. 4
      src/main/c/GameTic_Tac_Toe/game.c

4
src/main/c/GameTic_Tac_Toe/game.c

@ -76,8 +76,8 @@ void makeMove() {
// Konvertiere die Zahl in Zeilen- und Spaltenindex
if (isValidMove(choice)) {
int row = (choice - 1) / / BOARD_SIZE;
int col = (choice - 1) % % BOARD_SIZE;
int row = (choice - 1) / BOARD_SIZE;
int col = (choice - 1) % BOARD_SIZE;
board[row][col] = currentPlayer;
currentPlayer = switchPlayer(currentPlayer);

Loading…
Cancel
Save