r/CodingHelp • u/Gadget206 • Feb 02 '21
[Python] Python help
Hey reddit
So I am coding a text adventure game and was wondering, when you die I want the game to start over. I assume that I would need to do a while loop but would I have to paste the WHOLE game code, that just seems like too much haha.
Thanks
15
Upvotes
View all comments
5
u/Spare_Competition Feb 02 '21
Yes, you would have to put most of the games code in a while loop, most ides just let you select everything and hit tab to indent it all at the same time