diff --git a/5-Card_Stud_Poker_Game (Final).py b/5-Card_Stud_Poker_Game (Final).py index a7673dd..f7293ab 100644 --- a/5-Card_Stud_Poker_Game (Final).py +++ b/5-Card_Stud_Poker_Game (Final).py @@ -228,10 +228,15 @@ class Deck: self.cards: List[Card] = [Card(rank, suit) for suit in SUITS for rank in RANKS] random.seed(time.time()) # Seed random number generator with current time random.shuffle(self.cards) - deck_copy = copy.deepcopy(deck) - for _ in range(7): # Shuffle the deck 7 times - random.shuffle(deck_copy) - deck = deck_copy + deck = copy.deepcopy(self.cards) + time.sleep(0.1) + random.shuffle(deck) + time.sleep(0.1) + random.shuffle(deck) + time.sleep(0.1) + random.shuffle(deck) + time.sleep(0.1) + random.shuffle(deck) def deal_card(self) -> Card: return self.cards.pop(0)