From dc5b803e03219f56b870bfa71a67bf0359a8841b Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Fri, 8 Oct 2021 17:09:00 +0200 Subject: [PATCH] Bad test in set_ttt_winner() --- src/model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.c b/src/model.c index cc3e64c..cd642ee 100644 --- a/src/model.c +++ b/src/model.c @@ -174,7 +174,7 @@ void set_tictactoe_winner(s_tictactoe *p_ttt){ // columns for ( int i=0; i < TICTACTOE_WIDTH; i++ ) { if (p_ttt->content[i] != NOBODY - &&p_ttt->content[i] == p_ttt->content[i+1] + &&p_ttt->content[i] == p_ttt->content[i+3] && p_ttt->content[i] == p_ttt->content[i+6]) { p_ttt->winner = p_ttt->content[i]; return;