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.
This commit is contained in:
parent
fc1d134685
commit
6df10749fb
3 changed files with 24 additions and 0 deletions
|
@ -53,6 +53,8 @@ class TestConnectFourBot(BotTestCase):
|
|||
`start game`
|
||||
* To start a game against another player, type
|
||||
`start game with @<player-name>`
|
||||
* To play game with the current number of players, type
|
||||
`play game`
|
||||
* To quit a game at any time, type
|
||||
`quit`
|
||||
* To end a game with a draw, type
|
||||
|
|
|
@ -111,6 +111,8 @@ class TestGameHandlerBot(BotTestCase):
|
|||
`start game with @<player-name>`
|
||||
* To start a game with the computer, type
|
||||
`start game with` @**test-bot**
|
||||
* To play game with the current number of players, type
|
||||
`play game`
|
||||
* To quit a game at any time, type
|
||||
`quit`
|
||||
* To end a game with a draw, type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue