Browse Source

No winner

remotes/origin/Ariana
Ariana Ginju 11 months ago
committed by David Moeller
parent
commit
970382ae3c
  1. 3
      src/main/c/GameTic_Tac_Toe/game.c

3
src/main/c/GameTic_Tac_Toe/game.c

@ -29,3 +29,6 @@ char checkWinner() {
if (board[0][0] == board[1][1] && board[1][1] == board[2][2]) return board[0][0]; if (board[0][0] == board[1][1] && board[1][1] == board[2][2]) return board[0][0];
if (board[0][2] == board[1][1] && board[1][1] == board[2][0]) return board[0][2]; if (board[0][2] == board[1][1] && board[1][1] == board[2][0]) return board[0][2];
// Kein Gewinner
return ' ';
}
Loading…
Cancel
Save