Closed manushand closed 1 year ago
I'll take a look at this one shortly. I appreciate your feedback!
I'll take a look at this one shortly. I appreciate your feedback!
Thank you! I imagine you will notice, but I believe this same bug also applies to Move.IsMate.
THANKS SO MUCH for your prompt attention to this one!!
Describe the bug A move that promotes a pawn to a piece that does not deliver check is mistakenly set to IsCheck=true if there are other possible promotions (that is, to other pieces) that WOULD give check.
To Reproduce
You will see that includes both
checks.Count
is4
, when it should be2
, and that the Listh8=N+
andh8=B+
when neither of these promotions actually deliver check.Expected behaviour Moves that promote to pieces that do not deliver check should have
Move.IsCheck == false
. In the example code above, thechecks
List should contain only two moves:h8=Q+
andh8=R+
Screenshots N/A
Additional context N/A