Code cleanup and fix the logic behind the player constants number
[Project_algorithmic_C.git] / lib / constants.h
index 74ea1d8d8a3c9222065453fe6df279e8e9965a22..186e5dba3485420051252baa43116bacb05cae9f 100644 (file)
@@ -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
 #ifndef CONSTANTS_H
 #define CONSTANTS_H
 
-const int empty = 0;
-const int white = 1;
-const int black = 2;
+#define board_size 8
+//extern const unsigned int board_size; /* 8 */
+
+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 */
 
 #endif /* CONSTANTS_H */