From a7ebbad77d79b05e88e3dc07ab844770419205bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 22 Mar 2017 23:32:31 +0100 Subject: [PATCH] TP 13 exo2: Fix the beginning round of winning conditions check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP_13/exo2/lib/coordinates.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TP_13/exo2/lib/coordinates.c b/TP_13/exo2/lib/coordinates.c index 0a2d5e0..624de14 100644 --- a/TP_13/exo2/lib/coordinates.c +++ b/TP_13/exo2/lib/coordinates.c @@ -131,8 +131,8 @@ static bool chk_diagonals(coordinates_t* coordinates_array, unsigned round) { bool chk_win_conditions(coordinates_t* coordinates_array, unsigned round) { - /* winning conditions begin at round = 4 */ - if (round > 3) { + /* winning conditions begin at round = 5 */ + if (round > 4) { if (chk_diagonals(coordinates_array, round)) { return true; } -- 2.34.1