summaryrefslogtreecommitdiff
path: root/CAO_Board.py
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-04 00:21:20 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-04 00:21:20 +0100
commitf0a97bcd1306a0d09467b41a1989b3b784f8f2e5 (patch)
tree84a9ec83807c6b7a29be376212a06eb841f648ba /CAO_Board.py
parent1ee77bcb1df495f52aa7633a3d857db19720bbea (diff)
shuffle the played cards before designing
the judge tends to know with card belong to who if he can see the order Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Board.py')
-rw-r--r--CAO_Board.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/CAO_Board.py b/CAO_Board.py
index 925b1ee..0fd595b 100644
--- a/CAO_Board.py
+++ b/CAO_Board.py
@@ -46,6 +46,9 @@ class CAO_Board():
def play_card(self, player, card):
self.played_cards.append((card, player))
+ def shuffle_played_cards(self):
+ random.shuffle(self.played_cards)
+
def recycle_played_cards(self):
self.white_recycled += [i[0] for i in self.played_cards]