Beginner - ending a game
Hi! I can't figure out how to make it so that the game ends when the user types "no" into the restart()) section under my code.
I'm a beginner, and I am quite frustrated :(
To end a game, just first do
sys.exit() where you want it to stop.
I wouldn’t recommend doing
sleep(999) because then the user might not know if the repl is done or not.
Hope this helps!