Browse Source

refactoring: handleCommand

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
e52cfccaa0
  1. 6
      src/main/c/Georg/tictactoe.c

6
src/main/c/Georg/tictactoe.c

@ -25,9 +25,9 @@ struct ticTacToe createTicTacToe() {
} }
int handeCommand( char* input ){ 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; return 0;
}else if( strcmp(input, "start game") == 0 ){
return 1;
} }
} }
Loading…
Cancel
Save