From 0106b23a685da72e97291771d9345aa608f8b8d4 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 15 May 2020 02:39:03 +0200 Subject: Store cards as tuples (id, desc) Signed-off-by: Olivier Gayot --- swiftstory/Board.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'swiftstory/Board.py') diff --git a/swiftstory/Board.py b/swiftstory/Board.py index f14df41..c9b2aee 100644 --- a/swiftstory/Board.py +++ b/swiftstory/Board.py @@ -6,17 +6,18 @@ class Board: of cards ''' def __init__(self): + # List of tuples: + # (card_id, card_desc) self.white_pick = list() self.black_pick = list() - - self.white_recycled = [] - self.black_recycled = [] + self.white_recycled = list() + self.black_recycled = list() self.current_black_card = None - # tupple of cards / player currently being played - self.played_cards = [] - + # List of tuples: + # ((card_id, card_desc), player) + self.played_cards = list() def reveal_next_black_card(self): if self.current_black_card is not None: -- cgit v1.2.3