Browse Source

add the player won logic to the game handler

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
e937b3d8c3
  1. 6
      src/main/c/Georg/tictactoe.c

6
src/main/c/Georg/tictactoe.c

@ -191,6 +191,12 @@ void handleGame(){
free(params);
printBoard();
if( playerHasWon( GAME.board ) ){
printf("\n\nDu hast gewonnwn!\n\n");
// start menu
GAME.currentState=0;
}
}
}

Loading…
Cancel
Save