aboutsummaryrefslogtreecommitdiff
path: root/morpion_rec/NiAh/main.h
blob: 5cf06d2cbb2a6faeea24a53264d549bed02e51b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* IA pour morpion récursif - Alexis 
 * main.h
 * Définition des énumérations, typedef et autres */

typedef enum {FREE, CROSS, CIRCLE} Dots;
typedef enum {I=0, II=1, III=2, IV = 3, V=4, VI=5, VII=6, VIII=7, IX=8, Z=-1} Boxes;
typedef Boxes Solutions[4][2];

int play(Dots grid[9][9], Boxes subgrid, Dots player, Boxes move);
int chooseMoveAndPlay(Dots grid[9][9], Boxes subgrid, Dots player, Boxes *move, Boxes firstSubgrid);
void checkSolutions(Boxes a, Solutions sols);
void printGrid(Dots grid[9][9]);