From 7eed3ab448f84965e7c45aba78a019586758e884 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 12:07:04 +0100 Subject: [PATCH] add board print function --- src/main/c/Georg/tictactoe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index 6888e7e..43ff038 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/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(); }