From 25c8dc5ad6faa9998d47b476c4f402482d80963c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 15 May 2020 01:47:54 +0200 Subject: Simplify instructions Signed-off-by: Olivier Gayot --- swiftstory/Board.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/swiftstory/Board.py b/swiftstory/Board.py index f69c2d0..40d3ab7 100644 --- a/swiftstory/Board.py +++ b/swiftstory/Board.py @@ -25,9 +25,7 @@ class Board: self.black_recycled = [] - card = self.black_pick.pop() - - self.current_black_card = card + self.current_black_card = self.black_pick.pop() def recycle_black_card(self): self.black_recycled.append(self.current_black_card) @@ -40,9 +38,7 @@ class Board: self.white_recycled = [] - card = self.white_pick.pop() - - return card + return self.white_pick.pop() def play_card(self, player, card): self.played_cards.append((card, player)) -- cgit v1.2.3