From: "Sebastjan H." Date: 2012-09-25T03:46:46+09:00 Subject: Re: still learning by doing - connecting rooms in a game Thank you all for recommending the reading and all the suggestions and advices. According to those I'll try to re-factor the game like so: 1. Have one class for Room and then have subclasses for specific rooms. 2. Make a map of the rooms in one of the forms suggested above. I still have difficulties imagining hot to resolve the interaction between certain objects. For example, I wanted to have the kitchen and the dinning room play out like so: a) room description b) have the player decide whether or not they take some stuff c) second description, prologue to fight d) fight with a zombie e) exit the room If I have all this in the room.state() I can't reference the player object since I get the undefined local variable or method for player. So I assume I should put any decision making or fighting in the "runner" file since the runner knows about all the objects and have the room.state contain only the description? If there is another way I can reference these objects? If I initialize an object like player in the room itself it is again limited to the room in question, right? regards seba -- Posted via http://www.ruby-forum.com/.