mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-04-28 11:53:21 -07:00
Fix typo
This commit is contained in:
@@ -6,7 +6,6 @@ https://www.atariarchives.org/basicgames/showpage.php?page=2
|
|||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
||||||
cards = {
|
cards = {
|
||||||
2: "2",
|
2: "2",
|
||||||
3: "3",
|
3: "3",
|
||||||
@@ -28,7 +27,7 @@ def play_game() -> None:
|
|||||||
cash = 100
|
cash = 100
|
||||||
while cash > 0:
|
while cash > 0:
|
||||||
print(f"You now have {cash} dollars\n")
|
print(f"You now have {cash} dollars\n")
|
||||||
print("Here are you next two cards")
|
print("Here are your next two cards")
|
||||||
round_cards = list(cards.keys()) # gather cards from dictionary
|
round_cards = list(cards.keys()) # gather cards from dictionary
|
||||||
card_a = random.choice(round_cards) # choose a card
|
card_a = random.choice(round_cards) # choose a card
|
||||||
card_b = card_a # clone the first card, so we avoid the same number for the second card
|
card_b = card_a # clone the first card, so we avoid the same number for the second card
|
||||||
|
|||||||
Reference in New Issue
Block a user