Browse Source

added commands and their functions

remotes/origin/georg
KaffeeMaus 11 months ago
parent
commit
1d25e84001
  1. 10
      src/main/c/Georg/tictactoe.c
  2. 7
      src/main/c/Georg/tictactoe.h

10
src/main/c/Georg/tictactoe.c

@ -30,4 +30,14 @@ int handleCommand( char* input ){
}else if( strcmp(input, "start game") == 0 ){
return 1;
}
}
int startMenu(){
return 0;
}
int startGame(){
return 0;
}

7
src/main/c/Georg/tictactoe.h

@ -5,9 +5,16 @@ struct ticTacToe{
int currentState;
};
// Typdefinition für einen Funktionszeiger
typedef int (*commandFunction)();
char* getWelcomeMessage();
char* getRulesMessage();
struct ticTacToe createTicTacToe();
int handleCommand( char* input );
/* commands */
int startMenu();
int startGame();
#endif //TICTACTOE_H
Loading…
Cancel
Save