summaryrefslogtreecommitdiff
path: root/swiftstory/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'swiftstory/game.py')
-rw-r--r--swiftstory/game.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/swiftstory/game.py b/swiftstory/game.py
index f6dca14..1655d73 100644
--- a/swiftstory/game.py
+++ b/swiftstory/game.py
@@ -30,7 +30,7 @@ class Game:
random.shuffle(self.board.white_pick)
random.shuffle(self.board.black_pick)
- def try_join(self, client):
+ def try_join(self, player):
if len(self.players) >= 10:
raise JoinError('too many players in this game')
@@ -42,16 +42,9 @@ class Game:
except IndexError:
raise JoinError('not enough white cards for player')
- player = Player()
-
for card in cards:
player.receive_card(card)
- client.player = player
- client.game = self
-
- client.monitor_player()
-
self.players.append(player)
for p in self.players: