edi gay
This commit is contained in:
parent
263199d13a
commit
f6cb180ba5
|
@ -104,7 +104,7 @@ int main(int argc, char *argv[]){
|
|||
|
||||
|
||||
// SHM
|
||||
printf(PCLIENT "Setting up shm");
|
||||
printf(PCLIENT "Setting up shm\n");
|
||||
int shmBoardid = getShmid(input.rows, input.collums);
|
||||
boardClient = shmClientAt(shmBoardid);
|
||||
//
|
||||
|
|
|
@ -139,6 +139,7 @@ int checkMove(tile_t *board, int collums) {
|
|||
}
|
||||
|
||||
void insertMove(tile_t *board, int pos, int turn) {
|
||||
printf("playing %d in %d\n", (turn == 0) ? PLAYER2 : PLAYER1 , pos);
|
||||
board[pos] = (turn == 0) ? PLAYER1 : PLAYER2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue