Test for get_next_player_to_play()

This commit is contained in:
Yorick Barbanneau 2021-10-01 17:16:30 +02:00
parent dd3ed1fce2
commit 8074c40810
2 changed files with 3 additions and 2 deletions

View file

@ -110,9 +110,9 @@ e_player get_next_player_to_play(s_utictactoe *p_uttt) {
if ( p_uttt->outer_tictactoe->winner != NOBODY ) {
return NOBODY;
}
}
if ( p_uttt->history->last_move == NULL ) {
if ( p_uttt->history == NULL ) {
return PLAYER_X;
}
else {