value get all p_move value separately un play_move()

This commit is contained in:
Yorick Barbanneau 2021-10-15 16:54:00 +02:00
parent 4f8ced6d0e
commit 97ecb4d93a

View file

@ -270,7 +270,10 @@ e_status play_move(s_utictactoe *p_uttt, s_move *p_move) {
// we need to create a s_move in memory...
// and affect p_move
value->last_move = create_empty_move();
//value->last_move = p_move;
value->last_move->inner_position = p_move->inner_position;
value->last_move->outer_position = p_move->outer_position;
value->last_move->player = p_move->player;
if ( p_uttt->history == NULL ) {
value->next = NULL;
}