From e52cfccaa0bd45aa3a955ce57fe21eef3fe83bfa Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 11:07:11 +0100 Subject: [PATCH] refactoring: handleCommand --- 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 de5401b..a5955ee 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -25,9 +25,9 @@ struct ticTacToe createTicTacToe() { } int handeCommand( char* input ){ - if( strcmp(input, "start game") == 0 ){ - return 1; - }else if( strcmp(input, "start menu") == 0 ){ + if( strcmp(input, "start menu") == 0 ){ return 0; + }else if( strcmp(input, "start game") == 0 ){ + return 1; } } \ No newline at end of file