|
@ -1,6 +1,8 @@ |
|
|
#ifndef TICTACTOE_H |
|
|
#ifndef TICTACTOE_H |
|
|
#define TICTACTOE_H |
|
|
#define TICTACTOE_H |
|
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h> |
|
|
|
|
|
|
|
|
#define MAX_INPUT_LENGTH 20 |
|
|
#define MAX_INPUT_LENGTH 20 |
|
|
#define MAX_COMMANDS 3 |
|
|
#define MAX_COMMANDS 3 |
|
|
|
|
|
|
|
@ -26,6 +28,7 @@ char* getWelcomeMessageTicTacToe(void); |
|
|
char* getRulesMessageTicTacToe(void); |
|
|
char* getRulesMessageTicTacToe(void); |
|
|
struct ticTacToe createTicTacToe(); |
|
|
struct ticTacToe createTicTacToe(); |
|
|
int handleCommand( char* input ); |
|
|
int handleCommand( char* input ); |
|
|
|
|
|
void initializeBoard( bool board[3][3] ); |
|
|
|
|
|
|
|
|
/* commands */ |
|
|
/* commands */ |
|
|
commandFunction getCommandById(int id); |
|
|
commandFunction getCommandById(int id); |
|
|