value get all p_move value separately un play_move()
This commit is contained in:
parent
4f8ced6d0e
commit
97ecb4d93a
1 changed files with 4 additions and 1 deletions
|
@ -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...
|
// we need to create a s_move in memory...
|
||||||
// and affect p_move
|
// and affect p_move
|
||||||
value->last_move = create_empty_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 ) {
|
if ( p_uttt->history == NULL ) {
|
||||||
value->next = NULL;
|
value->next = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue