|
@ -95,6 +95,11 @@ void initializeBoard( bool board[BORAD_SIZE][BORAD_SIZE] ){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* The function checks if the user has written a valid command |
|
|
|
|
|
* @param input |
|
|
|
|
|
* @return 1 for a valid command and 0 for an invalid one. |
|
|
|
|
|
*/ |
|
|
int handleGameInput( char* input ){ |
|
|
int handleGameInput( char* input ){ |
|
|
if( strstr(input, "set") != NULL ){ |
|
|
if( strstr(input, "set") != NULL ){ |
|
|
return 1; |
|
|
return 1; |
|
|