TP 13 exo1: Implement a FIXME on array dynamic resizing
[TD_C.git] / TP_13 / exo2 / lib / coordinates.c
index 0a2d5e028c406579b8da3c3509727463fee1710e..2f02405f9f24f4d678cd297bfd739d7702e01a72 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "coordinates.h"
 
-#include <ncurses.h>
-
 void init_coordinates(coordinates_t* coordinates_array) {
 
     for (unsigned i = 0; i < MAX_COORDINATES; i++) {
@@ -131,8 +129,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;
         }