diff --git a/main.py b/main.py index e6e412c..055f8ad 100644 --- a/main.py +++ b/main.py @@ -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()