TP 13 exo2: Implement the missing bits to do a full game.
[TD_C.git] / TP_13 / exo2 / lib / coordinates.h
index 873d404735e9325853fff3703a8c636df4798520..3a17ade5a608a152f621d6a7fefa15b3915f9e61 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef COORDINATES_H
 #define COORDINATES_H
 
+#include <stdbool.h>
+
 /* we only have nine elements in the grid */
 #define MAX_COORDINATES 9
 
@@ -30,6 +32,7 @@ typedef struct coordinates_s {
 
 void init_coordinates(coordinates_t* coordinates_array);
 coordinates_t set_coordinates(int y, int x, unsigned type);
-unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array);
+unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array, unsigned round);
+bool chk_win_conditions(coordinates_t* coordinates_array);
 
 #endif /* COORDINATES_H */