src/chess/king.h

changeset 169
9962f5d98764
parent 163
2a6d83f4677e
child 170
bde99d803caf
equal deleted inserted replaced
168:663676cfef6e 169:9962f5d98764
38 #endif 38 #endif
39 39
40 bool king_chkrules(const GameState *gamestate, const Move *move); 40 bool king_chkrules(const GameState *gamestate, const Move *move);
41 bool king_isblocked(const GameState *gamestate, const Move *move); 41 bool king_isblocked(const GameState *gamestate, const Move *move);
42 42
43 #define KING_MOVES_MAX 8
44 size_t king_moves(GameState *gamestate, Color c, Row r, File f, Move *moves);
45 #define king_moves_allowed(gamestate, color, row, file, moves) \
46 filter_moves_allowed(gamestate, color, row, file, moves, king_moves)
47
43 #ifdef __cplusplus 48 #ifdef __cplusplus
44 } 49 }
45 #endif 50 #endif
46 51
47 #endif /* KING_H */ 52 #endif /* KING_H */

mercurial