2 * =====================================================================================
4 * Filename: coordinates.h
6 * Description: Header for data definition and functions to manipulate elements in the grid
9 * Created: 16/03/2017 19:06:16
13 * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org
14 * Organization: Piment Noir
16 * =====================================================================================
22 /* we only have nine elements in the grid */
23 #define MAX_COORDINATES 9
25 typedef struct coordinates_s
{
28 unsigned type
; /* 0 = O, 1 = X */
31 void init_coordinates(coordinates_t
* coordinates_array
);
32 coordinates_t
set_coordinates(int y
, int x
, unsigned type
);
33 unsigned add_coordinates(coordinates_t new_coordinates
, coordinates_t
* coordinates_array
);
35 #endif /* COORDINATES_H */