hello,
I have a question on how to organise files in Python - I'm trying to build a text based game.
At present I have 3 .py files :
stuff.py (some global lists and some universal methods like "display inventory"
room1.py (starting point for the program (each room is basically a function in it's own file)
room2.py (function is called when player exits room 1)
all was going great with using import stuff, room2 into room1 - however when I then got to programming room2, and the facility to go back to room1 (thus requiring an import of room1.py to enable its function call - I get errors.
I think I'm more familiar with headers and function prototypes in there, which the source files can then define and be called from anywhere if they all import the header - I'm not sure how to setup a similar thing in python?
thanks