Browse Source

Funktion für O gewinnt linksdiagonal erstellt

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

6
src/c/funktionen.c

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

Loading…
Cancel
Save