Skip to content

Instantly share code, notes, and snippets.

@sranso
Created December 6, 2013 00:15
Show Gist options
  • Save sranso/7816526 to your computer and use it in GitHub Desktop.
Save sranso/7816526 to your computer and use it in GitHub Desktop.
Game of
class World
attr_reader :world_array_y, :world_array_x
def initialize
create_world
@world_array_y
@world_array_x
end
def create_world
@world_array_y = []
50.times do |i|
@world_array_x = []
30.times do |ii|
@world_array_x << Cell.new(i, ii)
end
@world_array_y << @world_array_x
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment