cambio turno

This commit is contained in:
Edi De Candido 2023-05-18 10:50:06 +02:00
parent f30ad21a7f
commit 99e065a65c
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ int main(int argc, char *argv[]){
do {
semOp(semid, turn, 1);
turn = (turn + 1) % 2; // FIXME: si puo scrivere meglio?
turn ^= 1;
printfServer("");
printf("%s's turn\n", name[turn]);