lichess-org / scalachess

Chess API written in scala. Immutable and free of side effects.

Home Page:https://lichess.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

insufficient material in KQBvKB

niklasf opened this issue · 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