Browse Source

add board print function

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
7eed3ab448
  1. 4
      src/main/c/Georg/tictactoe.c

4
src/main/c/Georg/tictactoe.c

@ -189,6 +189,8 @@ void handleGame(){
int* params = getMarkerParameters( input );
setBoardMarker( GAME.board, params );
free(params);
printBoard();
}
}
@ -201,6 +203,8 @@ int startGame( int code ){
bool board[BORAD_SIZE][BORAD_SIZE];
initializeBoard( board );
printBoard();
while( GAME.currentState == 1 ){
handleGame();
}

Loading…
Cancel
Save