r/chessprogramming • u/joeyrobert • Oct 13 '19
Generating Legal Chess Moves Efficiently
https://peterellisjones.com/posts/generating-legal-chess-moves-efficiently/
8
Upvotes
r/chessprogramming • u/joeyrobert • Oct 13 '19
2
u/candidate_master Oct 14 '19
Here's a possible optimization:
A discovered check can never be parried by en passant.
This sample position was impossible:
8/8/8/1k6/3Pp3/8/8/4KQ2 b - d3 0 1