src/game.h

changeset 23
824c9522ce66
parent 19
6a26114297a1
child 26
e0a76ee1bb2b
equal deleted inserted replaced
22:41bbfd4d17a3 23:824c9522ce66
35 35
36 #ifdef __cplusplus 36 #ifdef __cplusplus
37 extern "C" { 37 extern "C" {
38 #endif 38 #endif
39 39
40 typedef struct MoveList MoveList;
41 typedef struct MoveListRoot MoveListRoot;
42
43 struct MoveListRoot {
44 MoveList* first;
45 MoveList* last;
46 };
47
48 struct MoveList {
49 Move move;
50 MoveList* next;
51 };
52
53
54 void game_start(Settings *settings, int opponent); 40 void game_start(Settings *settings, int opponent);
55
56 void freemovelist(MoveListRoot* list);
57 void addmove(MoveListRoot *movelist, Move *move);
58 41
59 #ifdef __cplusplus 42 #ifdef __cplusplus
60 } 43 }
61 #endif 44 #endif
62 45

mercurial