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

Loading…
Cancel
Save