-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atomic: Draw on insufficient winning material when flagging. #334
Comments
Is it just about changing this line? https://github.com/ornicar/scalachess/blob/master/src/main/scala/variant/Atomic.scala#L123 |
I don't think so. I think that would result in a draw before the guy capable of winning flagged on his clock due to these two lines: https://github.com/ornicar/scalachess/blob/master/src/main/scala/Situation.scala#L29 https://github.com/ornicar/scalachess/blob/master/src/main/scala/Board.scala#L112 Now that you've drew attention to that, I've realised I should probably determine insufficient winning material polymorphically for variants rather than doing this: |
When a player flags on time in atomic chess, if their opponent does not having sufficient material to win, the game should be drawn.
Raised in: https://en.lichess.org/forum/general-chess-discussion/atomic-chess-endings?page=1
The text was updated successfully, but these errors were encountered: