Originally Posted by
Elysia
Player should definitely be a class.
So should a Room.
Then you will probably want a linked list of rooms. Each object in the list contains a direction - up, down, left, right, linking to the next room in that direction.
Fill up the room object with relevant info about the room.
Then you can have the main function loop which basically polls some information such as name from the room and moves the character and does the actions in the room, etc.
How this stuff affects everything is dependent on the room object, in other words, the room object's implementation will act as the room "code".
Don't forget that due to the differences in the rooms, you will have to make a base class and derive specific rooms from it, and use polymorphism to manipulate the objects from the loop.
This is one approach. Perhaps it will further you on your way.