From 0c9ee93b7381e9a198ff1efa6703d4cb68a0b58d Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 15 May 2020 02:35:56 +0200 Subject: Don't pass the cards to the constructor of board Signed-off-by: Olivier Gayot --- swiftstory/Board.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'swiftstory/Board.py') diff --git a/swiftstory/Board.py b/swiftstory/Board.py index 5176e55..f14df41 100644 --- a/swiftstory/Board.py +++ b/swiftstory/Board.py @@ -5,9 +5,9 @@ class Board: ''' This class automatically handles the reshuffling of different deck/heap of cards ''' - def __init__(self, white_cards, black_cards): - self.white_pick = white_cards - self.black_pick = black_cards + def __init__(self): + self.white_pick = list() + self.black_pick = list() self.white_recycled = [] self.black_recycled = [] @@ -17,8 +17,6 @@ class Board: # tupple of cards / player currently being played self.played_cards = [] - random.shuffle(self.white_pick) - random.shuffle(self.black_pick) def reveal_next_black_card(self): if self.current_black_card is not None: -- cgit v1.2.3