summaryrefslogtreecommitdiff
path: root/CAO_Game.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 04:45:40 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 04:45:40 +0100
commit8a78e43e456b57c26843f9524b4e34fcf0d5913a (patch)
tree3ae04b2618cf50d5723cd855e8ce63f2a6edc4d8 /CAO_Game.py
parent830cd3a4733d59935ec7718aa4262d134dc4786a (diff)
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 <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Game.py')
-rw-r--r--CAO_Game.py6
1 files 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):