From 238240fa508b8b9c0a1fe7f98f04a0fc602e3df6 Mon Sep 17 00:00:00 2001 From: Donald Calloway Date: Sat, 4 Oct 2025 20:27:50 -0700 Subject: [PATCH] Revised poker game --- 5-Card_Stud_Poker_Game (Final).py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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)