bots: Create Chess Bot.

Chess Bot is a bot that allows you to play chess against either another
user or the computer. Use `start with other user` or
`start as <color> with computer` to start a game.

In order to play against a computer, `chess.conf` must be set with the
key `stockfish_location` set to the location of the Stockfish program on
this computer.

Use `bot_handler.storage` to preserve game state across messages.

(@showell also did minor work here to have the test use verify_dialog()
and have the bot respond to empty messages)
This commit is contained in:
Marco Burstein 2017-12-04 20:34:52 -08:00 committed by Steve Howell
parent 2fa677a3e0
commit 700ce6a673
7 changed files with 914 additions and 1 deletions

View file

@ -58,6 +58,8 @@ force_include = [
"zulip_bots/zulip_bots/bots/define/test_define.py",
"zulip_bots/zulip_bots/bots/encrypt/encrypt.py",
"zulip_bots/zulip_bots/bots/encrypt/test_encrypt.py",
"zulip_bots/zulip_bots/bots/chess/chess.py",
"zulip_bots/zulip_bots/bots/chess/test_chess.py",
]
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")