From: fedzor Date: 2008-02-23T07:09:12+09:00 Subject: Re: Beginner help - txt dungeon On Feb 22, 2008, at 3:52 AM, Thufir wrote: > You wouldn't want to be able to go from an earthRoom to marsRoom under > normal circumstances, I expect. > > Also, some rooms might have north, south, east, west but other rooms > might have no directions, but perhaps a secret door, or "pull > candlestick" or "go out" or similar. > > While the intention at this stage is to get something workable, I, for > one, would like to know how to keep options open down the road > (without > overly complicating what's meant to be an exercise). If you're using a hash, put whatever exits you want! use the user's input as a basis for indexing the hash. Don't necessarily make different rooms under different classes for dealing with exits only. Use different classes for things like.... gravity.. Ari -------------------------------------------| Nietzsche is my copilot