X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fconstants.h;h=88c466e0462d6dd8430145956ede7c5674720f59;hb=9240af1ae3159c7ba2f1ff1152089efd7fa5e38e;hp=74ea1d8d8a3c9222065453fe6df279e8e9965a22;hpb=4ddf6f1a0411ed147ba7a2ac178c186ebef374b5;p=Project_algorithmic_C.git diff --git a/lib/constants.h b/lib/constants.h index 74ea1d8..88c466e 100644 --- a/lib/constants.h +++ b/lib/constants.h @@ -3,7 +3,7 @@ * * Filename: constants.h * - * Description: Header for constant values + * Description: Header for constant values export * * Version: 1.0 * Created: 24/04/2017 21:06:32 @@ -19,9 +19,26 @@ #ifndef CONSTANTS_H #define CONSTANTS_H -const int empty = 0; -const int white = 1; -const int black = 2; +#define board_size 8 /* 8 */ +//extern const int board_size; /* 8 */ -#endif /* CONSTANTS_H */ +extern const unsigned int empty; /* 0 */ +extern const unsigned int black; /* 1 */ +extern const unsigned int white; /* 2 */ + +extern const unsigned int player_one; /* black */ +extern const unsigned int player_two; /* white */ + +extern const unsigned int hint_allowed; /* legal place for a pawn */ +extern const unsigned int hint_forbidden; /* illegal place for a pawn */ +extern const unsigned int north; +extern const unsigned int north_east; +extern const unsigned int east; +extern const unsigned int south_east; +extern const unsigned int south; +extern const unsigned int south_west; +extern const unsigned int west; +extern const unsigned int north_west; + +#endif /* CONSTANTS_H */