Aug-18-2017, 11:24 AM
Hi Prrz, welcome to Python!
You can replace
At the end of fight_loop and you_dead functions, you call the same function again. There is a limit to how often you can do that (it is called recursion), so a better way would be to simple use a real loop like the name suggests and you do in game_loop function already.
Keep up the text-based role-play-gaming!
You can replace
system.exit(0)
with simply return
At the end of fight_loop and you_dead functions, you call the same function again. There is a limit to how often you can do that (it is called recursion), so a better way would be to simple use a real loop like the name suggests and you do in game_loop function already.
Keep up the text-based role-play-gaming!