| 1 | /* |
| 2 | * ===================================================================================== |
| 3 | * |
| 4 | * Filename: constants.h |
| 5 | * |
| 6 | * Description: Header for constant values export |
| 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 | |
| 22 | #define board_size 8 /* 8 */ |
| 23 | //extern const int board_size; /* 8 */ |
| 24 | |
| 25 | extern const unsigned int empty; /* 0 */ |
| 26 | extern const unsigned int black; /* 1 */ |
| 27 | extern const unsigned int white; /* 2 */ |
| 28 | |
| 29 | extern const unsigned int player_one; /* black */ |
| 30 | extern const unsigned int player_two; /* white */ |
| 31 | |
| 32 | extern const unsigned int hint_allowed; /* legal place for a pawn */ |
| 33 | extern const unsigned int hint_forbidden; /* illegal place for a pawn */ |
| 34 | |
| 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 | |
| 44 | #endif /* CONSTANTS_H */ |
| 45 | |