Python Forum
Exploring Python by Writing my First Text RPG
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exploring Python by Writing my First Text RPG
#7
Hi Prrz, welcome to Python!

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! Big Grin
Reply


Messages In This Thread
RE: Exploring Python by Writing my First Text RPG - by Kebap - Aug-18-2017, 11:24 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020