Sequencing through something an array.

I need help writing a program that will sequence through a series of rooms. When you sequence through the rooms, you must first close a door that is currently open, then open the door to the next room. For example, lets say I start at room 5, the program will say "door to room 5 is now open", "would you like to open a door to another room?" Yes. " Which door would you like to open?" door 6. " Door 5 is now closing, opening door 6" etc etc.. I have the code, but it really doesnt make sense atm. If anybody can guide me in the right direction, i would really appreaciate it.



Topic archived. No new replies allowed.