31:ed440bcd9740 | 32:8a0b85303ee8 |
---|---|
29 | 29 |
30 #ifndef RULES_H | 30 #ifndef RULES_H |
31 #define RULES_H | 31 #define RULES_H |
32 | 32 |
33 #include <stdint.h> | 33 #include <stdint.h> |
34 #include <time.h> | |
34 | 35 |
35 #define VALID_MOVE_SYNTAX 0 | 36 #define VALID_MOVE_SYNTAX 0 |
36 #define INVALID_MOVE_SYNTAX 1 | 37 #define INVALID_MOVE_SYNTAX 1 |
37 #define INVALID_POSITION 2 | 38 #define INVALID_POSITION 2 |
38 #define AMBIGUOUS_MOVE 3 | 39 #define AMBIGUOUS_MOVE 3 |
74 uint8_t fromfile; | 75 uint8_t fromfile; |
75 uint8_t fromrow; | 76 uint8_t fromrow; |
76 uint8_t tofile; | 77 uint8_t tofile; |
77 uint8_t torow; | 78 uint8_t torow; |
78 uint8_t promotion; | 79 uint8_t promotion; |
80 struct timespec timestamp; | |
81 struct timespec movetime; | |
79 _Bool check; | 82 _Bool check; |
80 _Bool capture; | 83 _Bool capture; |
81 } Move; | 84 } Move; |
82 | 85 |
83 typedef struct MoveList MoveList; | 86 typedef struct MoveList MoveList; |