miguel-ambrona / sherlock

A chess library written in Rust, oriented to creating and solving chess compositions with especial emphasis on retrograde analysis.
MIT License
5 stars 0 forks source link

black bishops captured on c8 and f8 plus one more white pawn capture #38

Closed hwatheod closed 2 months ago

hwatheod commented 2 months ago

Sherlock doesn't detect this position as illegal: 4k2r/pp1pp1p1/1np2n1p/qr3p2/2PP1N1P/B1PQP1PB/P2KNPR1/R7 b - -

Issue

It is illegal because there are too many white captures: White captured the black bishops on c8, f8, plus one more pawn capture on the c-file.

miguel-ambrona commented 2 months ago

Thanks for this!

This will be captured automatically when we introduce non-deterministic rules to make pawn origins concrete.

I'll consider handling it in a different way though.