Commit | Line | Data |
---|---|---|
480acfeb JB |
1 | /* |
2 | * ===================================================================================== | |
3 | * | |
4 | * Filename: constants.h | |
5 | * | |
74e2b93b | 6 | * Description: Header for constant values export |
480acfeb 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 | #ifndef CONSTANTS_H | |
20 | #define CONSTANTS_H | |
21 | ||
a80646b7 JB |
22 | #define board_size 8 /* 8 */ |
23 | //extern const int board_size; /* 8 */ | |
2e5c1894 | 24 | |
74e2b93b | 25 | extern const unsigned int empty; /* 0 */ |
a8b54576 JB |
26 | extern const unsigned int black; /* 1 */ |
27 | extern const unsigned int white; /* 2 */ | |
74e2b93b JB |
28 | |
29 | extern const unsigned int player_one; /* black */ | |
30 | extern const unsigned int player_two; /* white */ | |
31 | ||
74e2b93b JB |
32 | extern const unsigned int hint_allowed; /* legal place for a pawn */ |
33 | extern const unsigned int hint_forbidden; /* illegal place for a pawn */ | |
4ddf6f1a | 34 | |
45ce2fe3 JB |
35 | extern const unsigned int north; |
36 | extern const unsigned int north_east; | |
37 | extern const unsigned int east; | |
38 | extern const unsigned int south_east; | |
39 | extern const unsigned int south; | |
40 | extern const unsigned int south_west; | |
41 | extern const unsigned int west; | |
42 | extern const unsigned int north_west; | |
43 | ||
480acfeb | 44 | #endif /* CONSTANTS_H */ |