--- a/src/chess/rules.h Sat Aug 01 11:26:48 2026 +0200 +++ b/src/chess/rules.h Sun Aug 02 15:08:43 2026 +0200 @@ -288,7 +288,9 @@ } /** - * Determines a list of possible moves to the specified field. + * Determines a list of theoretically possible moves to the specified field. + * + * This will also list moves for pieces that are actually pinned. * * The out-parameters may both be NULL, but if any of them is set, the other * must be set, too. @@ -301,7 +303,7 @@ * (must be large enough, 16 is always enough) * @param movecount a pointer where the number of moves is stored * @return true, if any piece of the specified color can move to the specified - * field + * field regardless of being pinned */ bool get_candidates(const GameState *gamestate, Row row, File file, Color color, Move* moves, size_t* movecount);