src/chess/pawn.h

changeset 194
619f07c95894
parent 170
bde99d803caf
child 195
27d02ccb0cef
equal deleted inserted replaced
193:d1420f5c5704 194:619f07c95894
39 bool pawn_chkrules(const GameState *gamestate, const Move *move); 39 bool pawn_chkrules(const GameState *gamestate, const Move *move);
40 bool pawn_isblocked(const GameState *gamestate, const Move *move); 40 bool pawn_isblocked(const GameState *gamestate, const Move *move);
41 41
42 #define PAWN_MOVES_MAX 4 42 #define PAWN_MOVES_MAX 4
43 size_t pawn_moves(const GameState *gamestate, 43 size_t pawn_moves(const GameState *gamestate,
44 Color c, Row r, File f, Move *moves); 44 Color c, Rank r, File f, Move *moves);
45 #define pawn_moves_allowed(gamestate, color, row, file, moves) \ 45 #define pawn_moves_allowed(gamestate, color, rank, file, moves) \
46 filter_moves_allowed(gamestate, color, row, file, moves, pawn_moves) 46 filter_moves_allowed(gamestate, color, rank, file, moves, pawn_moves)
47 47
48 #ifdef __cplusplus 48 #ifdef __cplusplus
49 } 49 }
50 #endif 50 #endif
51 51

mercurial