Skip to content

Commit abb7613

Browse files
committed
commented on knight legal moves
1 parent 7a75aaf commit abb7613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/bitbishop/movegen/knight_moves.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <utility>
99
#include <vector>
1010

11+
// pinned knights cannot move at all due to knight's l-shaped move geometry
1112
void generate_knight_legal_moves(std::vector<Move>& moves, const Board& board, Color us, const Bitboard& check_mask,
1213
const PinResult& pins) {
1314
const Bitboard own = board.friendly(us);

0 commit comments

Comments
 (0)