clean loop with cleared hand
This commit is contained in:
@@ -104,6 +104,8 @@ class Game:
|
||||
player = self.player
|
||||
dealer = self.dealer
|
||||
|
||||
player.hand.__init__()
|
||||
dealer.hand.__init__()
|
||||
# beginning of a round, shuffle deck and deal cards
|
||||
|
||||
deck.shuffle()
|
||||
@@ -129,5 +131,3 @@ class Game:
|
||||
self.show_cards()
|
||||
|
||||
print(self.compare_hands(0))
|
||||
player.hand.clear_hand()
|
||||
dealer.hand.clear_hand()
|
||||
|
||||
Reference in New Issue
Block a user