cjsaylor / chessbot

Slack bot for playing chess.
https://www.chris-saylor.com/chessbot/
MIT License
35 stars 4 forks source link

Ability to draw a game #55

Open zac-keysys opened 4 years ago

zac-keysys commented 4 years ago

Either the 3-fold repetition rule or a manual draw command that can be entered to end games without one player having to resign.

cjsaylor commented 3 years ago

@zac-keysys The library that the chess bot uses behind the scenes already has the ability to recognize specific draw conditions, we would just need to check it after a move is made.

A nice interface for this may be to include some text about the draw conditions detected and then offer a button whose action would be to offer a draw. This would then flow into a call/response from the opponent to end the game as a draw.

This could be tied in with #25.