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

Crazyhouse insufficient material draws

orausch opened this issue · comments

In Crazyhouse, scalachess currently autodraws the game when there is insufficient mating material on the board. This behavior is incorrect, since a player could have material that they can place, and in these cases, the player can still mate by placing material on the board.

Here is an example of the incorrect behaviour: https://lichess.org/IVDQElJG

In Crazyhouse, insufficient mating material draws should never occur, since material never leaves the game state (it can always be placed back). This means that at least one player is always able to mate the other.