7248975a9429671f4ab7d81ab40ed73b608041a4
[Project_algorithmic_C.git] / lib / constants.c
1 /*
2 * =====================================================================================
3 *
4 * Filename: constants.c
5 *
6 * Description: Constant values definition
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 */
20
21 #include "constants.h"
22
23 //const unsigned int board_size = 8;
24
25 const unsigned int empty = 0;
26 const unsigned int black = 1;
27 const unsigned int white = 2;
28
29 /* FIXME: reuse the two above variables would be better */
30 const unsigned int player_one = 1; /* first player is black */
31 const unsigned int player_two = 2;
32
33 const unsigned int hint_allowed = 3;
34 const unsigned int hint_forbidden = 4;
35
36 const unsigned int north = 5;
37 const unsigned int north_east = 6;
38 const unsigned int east = 7;
39 const unsigned int south_east = 8;
40 const unsigned int south = 9;
41 const unsigned int south_west = 10;
42 const unsigned int west = 11;
43 const unsigned int north_west = 12;