Implement :
[Project_algorithmic_C.git] / lib / othello.h
index 24bf9fb30750f47dedb4b170ef58f5a2e7e57df4..a591405db2563216aba4452a265b9d895fdc9801 100644 (file)
 #include "constants.h"
 #include "list.h"
 
-struct shots_list {
+/* TODO: must be used to replace the explicit pawns 2D array */
+struct pawns_s {
+    unsigned int pawns[board_size][board_size];
+};
+
+/* linked list of played shots */
+struct shots_history_list_s {
+    struct list_head list;
+    unsigned int*** pawn_array_member; /* pointer to a cell of the pawns 2D array */
+    /* struct* pawns_s pawn */
+};
+
+/* linked list of can play shots */
+struct shots_exploration_s {
     struct list_head list;
-    unsigned int*** pawn_array_member;
+    int y;
+    int x;
+    unsigned int type;
 };
 
 unsigned int current_player(unsigned int round_count);