|
@ -149,6 +149,19 @@ void printBoard(){ |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int* getMarkerParameters( char* input ){ |
|
|
|
|
|
int* array = (int*)malloc(2 * sizeof(int)); |
|
|
|
|
|
|
|
|
|
|
|
int index = strchr(input, ',') - input; |
|
|
|
|
|
int firstArgument = input[index-1] - '0'; |
|
|
|
|
|
int secondArgument = input[index+1] - '0'; |
|
|
|
|
|
|
|
|
|
|
|
array[0] = firstArgument; |
|
|
|
|
|
array[1] = secondArgument; |
|
|
|
|
|
|
|
|
|
|
|
return array; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int startGame( int code ){ |
|
|
int startGame( int code ){ |
|
|
if( code == -1 ){ // command test |
|
|
if( code == -1 ){ // command test |
|
|
return 1; |
|
|
return 1; |
|
|