A newby question, only been using Ruby for about 2 days.
Is there a better way of creating a two dimention array, than the code
def create_world x, y
row = Array.new
col = Array.new
map_type = rand(2) col[i] = map_type } row[j] = col
world = create_world(gets.to_i, gets.to_i)
Also, what is the best method of accessing the syslog file within Linux?
could open the file for reading, but I want to make sure there isn’t a
better method first.
Life is a challenge, treat it that way.