Remove test on last player
This commit is contained in:
parent
26fd5b1d5b
commit
dd3ed1fce2
1 changed files with 1 additions and 2 deletions
|
@ -112,8 +112,7 @@ e_player get_next_player_to_play(s_utictactoe *p_uttt) {
|
|||
return NOBODY;
|
||||
}
|
||||
|
||||
if ( (p_uttt->history->last_move && p_uttt->history->last_move->player == PLAYER_O) ||
|
||||
p_uttt->history->last_move == NULL ) {
|
||||
if ( p_uttt->history->last_move == NULL ) {
|
||||
return PLAYER_X;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue