X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fconstants.c;h=7248975a9429671f4ab7d81ab40ed73b608041a4;hb=45ce2fe369cead248855111baa5fe0c0495acf69;hp=66728da6e88b7dbabf2416cb8f34df16c4c402ad;hpb=74e2b93b658575fa792ada51c3bf1cdc3cfde247;p=Project_algorithmic_C.git diff --git a/lib/constants.c b/lib/constants.c index 66728da..7248975 100644 --- a/lib/constants.c +++ b/lib/constants.c @@ -23,12 +23,21 @@ //const unsigned int board_size = 8; const unsigned int empty = 0; -const unsigned int white = 1; -const unsigned int black = 2; +const unsigned int black = 1; +const unsigned int white = 2; /* FIXME: reuse the two above variables would be better */ -const unsigned int player_one = 2; /* first player is black */ -const unsigned int player_two = 1; +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; + +const unsigned int north = 5; +const unsigned int north_east = 6; +const unsigned int east = 7; +const unsigned int south_east = 8; +const unsigned int south = 9; +const unsigned int south_west = 10; +const unsigned int west = 11; +const unsigned int north_west = 12;