|
|
@ -86,7 +86,7 @@ char* getUserInput(){ |
|
|
|
return userInput; |
|
|
|
} |
|
|
|
|
|
|
|
void initializeBoard( bool board[3][3] ){ |
|
|
|
void initializeBoard( bool board[BORAD_SIZE][BORAD_SIZE] ){ |
|
|
|
for (int i = 0; i < 3; ++i) { |
|
|
|
for (int j = 0; j < 3; ++j) { |
|
|
|
board[i][j] = 0; |
|
|
@ -120,6 +120,8 @@ int startGame( int code ){ |
|
|
|
} |
|
|
|
|
|
|
|
printf("Welcome to the game!\n"); |
|
|
|
bool board[BORAD_SIZE][BORAD_SIZE]; |
|
|
|
initializeBoard( board ); |
|
|
|
|
|
|
|
while( GAME.currentState == 1 ){ |
|
|
|
int nextState = handleCommand( getUserInput() ); |
|
|
|