Browse Source

21 move X

remotes/origin/Simon
Simon Hildebrandt 11 months ago
parent
commit
334825f987
  1. 7
      src/main/c/TicTacToe.c

7
src/main/c/TicTacToe.c

@ -69,7 +69,12 @@ int Winner(char Feld[3][3]) {
void Zuege(char Feld[3][3], int row, int col) { void Zuege(char Feld[3][3], int row, int col) {
if (Zaehler % 2 == 0) { if (Zaehler % 2 == 0) {
if (Feld[row][col] == '_') { if (Feld[row][col] == '_') {
Feld[row][col] = 'O';
Feld[row][col] = 'O';
}
}
else {
if (Feld[row][col] == '_') {
Feld[row][col] = 'X';
} }
} }
} }
Loading…
Cancel
Save