From: Jérôme Benoit Date: Wed, 22 Mar 2017 22:32:31 +0000 (+0100) Subject: TP 13 exo2: Fix the beginning round of winning conditions check X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a7ebbad77d79b05e88e3dc07ab844770419205bd;p=TD_C.git TP 13 exo2: Fix the beginning round of winning conditions check Signed-off-by: Jérôme Benoit --- 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; }