X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fothello.h;h=a591405db2563216aba4452a265b9d895fdc9801;hp=24bf9fb30750f47dedb4b170ef58f5a2e7e57df4;hb=45ce2fe369cead248855111baa5fe0c0495acf69;hpb=a8b5457691fcb565dd185e7a623dd53eca96127c diff --git a/lib/othello.h b/lib/othello.h index 24bf9fb..a591405 100644 --- a/lib/othello.h +++ b/lib/othello.h @@ -22,9 +22,24 @@ #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);