lichess-org/scalachess

insufficient material in KQBvKB

niklasf opened this issue · 2 comments

as discussed in slack, both sides can mate in KQBvKB (e.g. https://lichess.org/acoGWk8E#134)

This is probably the source of the bug (I can't test now, but think either of those two conditions are "sufficient" on their own):

https://github.com/ornicar/scalachess/blob/2d4aa7e2db77ce7dff353ccbc61ed4529669f5f7/src/main/scala/InsufficientMatingMaterial.scala#L66

Fixed via #164