This commit is contained in:
Lorenzo Bianchi 2023-05-23 12:11:17 +02:00
parent 263199d13a
commit f6cb180ba5
2 changed files with 2 additions and 1 deletions

View File

@ -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);
//

View File

@ -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;
}