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:
parent
2fa677a3e0
commit
700ce6a673
7 changed files with 914 additions and 1 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue