custom_msg rcv and snd

This commit is contained in:
Lorenzo Bianchi 2023-05-21 11:34:14 +02:00
parent 26ae8d5cc7
commit bc4edb053d
1 changed files with 1 additions and 3 deletions

View File

@ -144,7 +144,6 @@ int main(int argc, char *argv[]){
// PARTITA
move_t move = {.mtype = 2};
int current_move;
while (1) { //FIXME: potenzialmente da cambiare questo while (ma forse bastano i segnali)
// aspetto il mio turno
@ -156,10 +155,9 @@ int main(int argc, char *argv[]){
scanf("%d", &move.move);
move.move--;
//FIXME: current_move = checkMove(move.move);
} while(current_move < 0);
} while(move.move < 0);
// mando mossa al server
move.move = current_move;
sndMove(&move);
}