| 43 size_t bishop_moves(const GameState *gamestate, |
43 size_t bishop_moves(const GameState *gamestate, |
| 44 Color c, File f, Rank r, Move *moves); |
44 Color c, File f, Rank r, Move *moves); |
| 45 #define bishop_moves_allowed(gamestate, color, file, rank, moves) \ |
45 #define bishop_moves_allowed(gamestate, color, file, rank, moves) \ |
| 46 filter_moves_allowed(gamestate, color, file, rank, moves, bishop_moves) |
46 filter_moves_allowed(gamestate, color, file, rank, moves, bishop_moves) |
| 47 |
47 |
| 48 #ifdef __cplusplus |
48 #ifdef __cplusplus |
| 49 } |
49 } |
| 50 #endif |
50 #endif |
| 51 |
51 |
| 52 #endif /* BISHOP_H */ |
52 #endif /* BISHOP_H */ |
| 53 |
53 |