From 8a78e43e456b57c26843f9524b4e34fcf0d5913a Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 4 Jun 2015 04:45:40 +0100 Subject: return more information to the end user when the queries are successful, we try to give more usable information to the user so that no more queries are needed. Signed-off-by: Olivier Gayot --- CAO_Game.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CAO_Game.py b/CAO_Game.py index fda7707..3738277 100644 --- a/CAO_Game.py +++ b/CAO_Game.py @@ -44,7 +44,7 @@ class CAO_Game(): self.players.append(player) - return cao_success(None) + return self.try_view_player_cards(player) def try_become_judge(self, player): @@ -57,7 +57,7 @@ class CAO_Game(): self.state = self.WAITING_COLLECTION - return cao_success(None) + return self.try_view_black_card(player) def try_play_card(self, player, card_id): @@ -78,7 +78,7 @@ class CAO_Game(): self.board.play_card(player, card) - return cao_success(None) + return cao_success({'card_id': card_id}) def try_collect_cards(self, player): -- cgit v1.2.3