From dd3ed1fce20dce6d2252c3b755fe4055a6feecf4 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 1 Oct 2021 17:00:19 +0200 Subject: [PATCH] Remove test on last player --- src/model.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/model.c b/src/model.c index afd9554..33773f6 100644 --- a/src/model.c +++ b/src/model.c @@ -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 {