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
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ def main():
if answer == "q":
break
balance += spin(balance)
if balance == 0:
print("You are out of money. Please deposit more to continue playing.")
answer = input("Press enter to make another deposit. (q to quit)")
if answer == "q":
break
balance = deposit()

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

Expand Down