From: tonys@... (tony summerfelt) Date: 2000-12-30T13:40:02+09:00 Subject: [ruby-talk:8332] Re: Hash access method On Wed, 27 Dec 2000 04:00:22 +0900, Dave Thomas wrote: > If you're going for a full Rubification, have you considered wrapping > these variables in a number of classes? I have no idea what they all > are, but I'm thinking that they might well be some kind of logical > grouping that might hep structure things. well i thought 'planet' would be a good object for a planet :) it will have x,y co-ordinates which won't change a 'name' (a..z) which won't change all the rest of the planet variables will change. (owner, number of ships, etc) all the methods that change these other variables will be in the planet class. that seemed logical to me... i was looking for the ruby way to initialize all the planets, but if the code that was previously posted doesn't work and there isn't any quick way of doing it, i'll have 26 code pieces to duplicate (which doesn't quite seem right...) the python code i posted as an example DOES work when compiled/run... -- *---------------------------------------- | |http://www.biosys.net/snowzone | |remove myspleen to email | *-----------------------