Anders Kaseorg
6f40bcf745
cleanup: Fix whitespace around parameter equals.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
54b2578204
cleanup: Remove unused variables.
...
Generated by autoflake.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
f5d96dbcce
cleanup: Remove duplicate imports.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
2f6623bbc4
cleanup: Remove unused imports.
...
Generated by autoflake.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
e30b3b094b
Modernize legacy Python 2 syntax with pyupgrade.
...
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00
fishfred
87b57f879c
bots: Fixed incorrect computer play message
2020-03-30 12:02:32 -04:00
Tarun Kumar
ee611d935e
game_handler: Support single player games and enforce 'rules' command.
...
Update tests for test_connect_four.py and test_game_handler_bot.py.
2018-03-25 12:53:15 -04:00
Ricky
bb4c9c9bdb
game_handler: Use avatars instead of emails in messages.
...
Fixes #336
2018-03-21 08:31:46 -04:00
amanagr
b0b372c95d
Support game_handler
to allow consecutive turns for the same player.
...
Add a SamePlayerMove exception that allows giving consecutive turns to the
same player.
2018-02-27 08:28:40 -05:00
amanagr
6df10749fb
Make game_handler
support starting a game with a range of playeres.
...
Allow a game to start even if `max_players` is not reached.
Adding a new command `play game` to start a game if the
number of players is between max and min no. of players.
Make tests pass with the new change.
2018-02-20 16:08:34 -05:00
fredfishgames
ec5be8fc7e
zulip_bots: Consolidate game-playing bots.
2018-01-22 11:30:31 -05:00