#include "coordinates.h"
-void zero_coordinates(coordinates_t* coordinates_array) {
-
- for (unsigned i = 0; i < MAX_COORDINATES; i++) {
- coordinates_array[i] = set_coordinates(0, 0, 0);
- }
-}
-
coordinates_t set_coordinates(int y, int x, unsigned type) {
coordinates_t new_coordinates;
return new_coordinates;
}
+void zero_coordinates(coordinates_t* coordinates_array) {
+
+ for (unsigned i = 0; i < MAX_COORDINATES; i++) {
+ coordinates_array[i] = set_coordinates(0, 0, 0);
+ }
+}
+
/* FIXME: Does it worth doing a coordinates_t get_coordinates(int y, int x, unsigned type); helper function? */
/* Or a int get_coordinates_x(coordinates_t coordinates); helper function? */
unsigned type; /* 0 = O, 1 = X */
} coordinates_t;
-void zero_coordinates(coordinates_t* coordinates_array);
coordinates_t set_coordinates(int y, int x, unsigned type);
+void zero_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, unsigned round);