I've built a small text RPG in python, which has an end state where you run out of health and takes you back to the main menu. The problem is when you start a new game, all of the objects are still in the previous state (enemies dead, loot collected etc).
Is there anyway of effectively resetting it, as if I'd killed and restarted the script without actually doing so?
EDIT: I was wondering if there was a generic way of reinitialising, but if it helps my project is here