diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-05-15 02:39:03 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2020-05-15 03:13:01 +0200 |
commit | 0106b23a685da72e97291771d9345aa608f8b8d4 (patch) | |
tree | 46eb0a15fc90a8afcb3c9735b76c4a97a2096226 /swiftstory/Board.py | |
parent | 0c9ee93b7381e9a198ff1efa6703d4cb68a0b58d (diff) |
Store cards as tuples (id, desc)
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/Board.py')
-rw-r--r-- | swiftstory/Board.py | 13 |
1 files changed, 7 insertions, 6 deletions
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: |