summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-23 14:45:10 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-23 14:45:10 +0100
commitf706345678fb53464b4aaa821fb21b9b48894150 (patch)
tree2cbc6326e61efb27f95ecb2cdcba590ab3c3f793
parent9d6c80bac902cb5c32146e2a891aa5e1317e144e (diff)
server: fixed extra card given to the judge
After designating the best card, the judge was given a new card. This patch fixed this behaviour. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--CAO/Game.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/CAO/Game.py b/CAO/Game.py
index f4123d4..917c055 100644
--- a/CAO/Game.py
+++ b/CAO/Game.py
@@ -148,7 +148,7 @@ class Game():
# reset the state of the players
for p in self.players:
- if p.get_has_played:
+ if p.get_has_played():
idx = p.receive_card(self.board.pick_white_card())
card_idx = p.cards[idx]
card_desc = self.white_desc[card_idx]