Add the basic code to make othello playable without any rule checks
[Project_algorithmic_C.git] / lib / constants.c
index 7559432923cbe4ec722bdd31ebaba516cdbcbed6..66728da6e88b7dbabf2416cb8f34df16c4c402ad 100644 (file)
@@ -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
  */
 
 /* 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 white = 1;
+const unsigned int black = 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 hint_allowed = 3;
+const unsigned int hint_forbidden = 4;