X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fconstants.c;h=289bf044d315109ecaedd536e444c2b3651d61a0;hb=a8b5457691fcb565dd185e7a623dd53eca96127c;hp=7559432923cbe4ec722bdd31ebaba516cdbcbed6;hpb=2e5c189444a82df0d9127c94322ec4e3b159dcce;p=Project_algorithmic_C.git diff --git a/lib/constants.c b/lib/constants.c index 7559432..289bf04 100644 --- a/lib/constants.c +++ b/lib/constants.c @@ -1,9 +1,9 @@ /* * ===================================================================================== * - * Filename: constants.h + * Filename: constants.c * - * Description: Header for constant values + * Description: Constant values definition * * Version: 1.0 * Created: 24/04/2017 21:06:32 @@ -17,6 +17,18 @@ */ /* exported const definitions */ -const int empty = 0; -const int white = 1; -const int black = 2; + +#include "constants.h" + +//const unsigned int board_size = 8; + +const unsigned int empty = 0; +const unsigned int black = 1; +const unsigned int white = 2; + +/* FIXME: reuse the two above variables would be better */ +const unsigned int player_one = 1; /* first player is black */ +const unsigned int player_two = 2; + +const unsigned int hint_allowed = 3; +const unsigned int hint_forbidden = 4;