From 558582a8ad5db04811b0b25a25878605a14d269f Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 12:17:29 +0100 Subject: [PATCH] refactoring: commend the start function --- src/main/c/Georg/tictactoe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index 4f0b919..2e900d6 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -14,11 +14,11 @@ struct usrCommand COMMANDS[MAX_COMMANDS] = { }; void startTicTacToe(){ - setbuf(stdout, 0); + setbuf(stdout, 0); // for debug output printf( "%s\n", getWelcomeMessageTicTacToe() ); printf( "%s\n\n", getRulesMessageTicTacToe() ); - GAME = createTicTacToe(); + GAME = createTicTacToe(); // create the "game object" while( GAME.currentState != -1 ){ commandFunction usrCommand; @@ -26,7 +26,7 @@ void startTicTacToe(){ usrCommand = getCommandById( GAME.currentState + 1); if( usrCommand != NULL) - usrCommand(0); + usrCommand(0); // 0, for non test behavior else{ printf("command not found"); return;