| 37 #endif |
37 #endif |
| 38 |
38 |
| 39 bool bishop_chkrules(const Move *move); |
39 bool bishop_chkrules(const Move *move); |
| 40 bool bishop_isblocked(const GameState *gamestate, const Move *move); |
40 bool bishop_isblocked(const GameState *gamestate, const Move *move); |
| 41 |
41 |
| |
42 #define BISHOP_MOVES_MAX 13 |
| |
43 size_t bishop_moves(GameState *gamestate, Color c, Row r, File f, Move *moves); |
| |
44 #define bishop_moves_allowed(gamestate, color, row, file, moves) \ |
| |
45 filter_moves_allowed(gamestate, color, row, file, moves, bishop_moves) |
| |
46 |
| 42 #ifdef __cplusplus |
47 #ifdef __cplusplus |
| 43 } |
48 } |
| 44 #endif |
49 #endif |
| 45 |
50 |
| 46 #endif /* BISHOP_H */ |
51 #endif /* BISHOP_H */ |