Browse Source

Funktion O gewinnt senkrecht rechts wurde erstellt.

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

6
src/c/funktionen.c

@ -83,6 +83,12 @@ int o_wins_01_11_21(char board[][3]) {
} }
} }
int o_wins_02_12_22(char board[][3]) {
if (board[0][2] == 'O' && board[1][2] == 'O' && board[2][2] == 'O') {
return 1;
}
}
int string_character_counter(char string[]) { int string_character_counter(char string[]) {
int stringLength = 0; int stringLength = 0;

Loading…
Cancel
Save