Browse Source

Funktion für O gewinnt rechtsdiagonal erstellt

remotes/origin/siamak
Siamak 11 months ago
parent
commit
eb49f0c57d
  1. 6
      src/c/funktionen.c

6
src/c/funktionen.c

@ -105,6 +105,12 @@ int o_wins_20_21_22(char board[][3]) {
}
}
int o_wins_00_11_22(char board[][3]) {
if (board[0][0] == 'O' && board[1][1] == 'O' && board[2][2] == 'O') {
return 1;
}
}
int stringCharacterCounter(char string[]) {
int stringLength = 0;

Loading…
Cancel
Save