Commit | Line | Data |
---|---|---|
2e5c1894 JB |
1 | /* |
2 | * ===================================================================================== | |
3 | * | |
74e2b93b | 4 | * Filename: constants.c |
2e5c1894 | 5 | * |
74e2b93b | 6 | * Description: Constant values definition |
2e5c1894 JB |
7 | * |
8 | * Version: 1.0 | |
9 | * Created: 24/04/2017 21:06:32 | |
10 | * Revision: none | |
11 | * Compiler: gcc | |
12 | * | |
13 | * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org | |
14 | * Organization: Piment Noir | |
15 | * | |
16 | * ===================================================================================== | |
17 | */ | |
18 | ||
19 | /* exported const definitions */ | |
74e2b93b JB |
20 | |
21 | #include "constants.h" | |
22 | ||
a80646b7 | 23 | //const int board_size = 8; |
74e2b93b JB |
24 | |
25 | const unsigned int empty = 0; | |
a8b54576 JB |
26 | const unsigned int black = 1; |
27 | const unsigned int white = 2; | |
74e2b93b JB |
28 | |
29 | /* FIXME: reuse the two above variables would be better */ | |
a8b54576 JB |
30 | const unsigned int player_one = 1; /* first player is black */ |
31 | const unsigned int player_two = 2; | |
74e2b93b | 32 | |
f8be19ba | 33 | const unsigned int hint_allowed = 3; |
74e2b93b | 34 | const unsigned int hint_forbidden = 4; |
45ce2fe3 | 35 | |
f8be19ba | 36 | const unsigned int north = 10; |
a80646b7 | 37 | const unsigned int north_east = 11; |
f8be19ba | 38 | const unsigned int east = 12; |
a80646b7 | 39 | const unsigned int south_east = 13; |
f8be19ba | 40 | const unsigned int south = 14; |
a80646b7 | 41 | const unsigned int south_west = 15; |
f8be19ba | 42 | const unsigned int west = 16; |
a80646b7 | 43 | const unsigned int north_west = 17; |