Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ def main():
break
balance += spin(balance)

print(f"You left with ${balance}")

# ✅ Ask the player if they want to play again
restart = input("Do you want to play again? (y/n): ")
if restart.lower() != "y":
print(f"You left with ${balance}")
return # Exit the function, stopping the game

main()