src/chess/bishop.h

changeset 224
93e0e89496fe
parent 195
27d02ccb0cef
equal deleted inserted replaced
223:e2519b3dd5e7 224:93e0e89496fe
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 * 27 *
28 */ 28 */
29 29
30 #ifndef BISHOP_H 30 #ifndef BISHOP_H
31 #define BISHOP_H 31 #define BISHOP_H
32 32
33 #include "rules.h" 33 #include "rules.h"
34 34
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
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);
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

mercurial