Skip to content

Instantly share code, notes, and snippets.

@michaelwehrley
Created September 30, 2015 19:01
Show Gist options
  • Save michaelwehrley/ef1c58b7b86ce6c584d2 to your computer and use it in GitHub Desktop.
Save michaelwehrley/ef1c58b7b86ce6c584d2 to your computer and use it in GitHub Desktop.
class Board
attr_reader :cells
def initialize
@cells = []
(1..16).times do |n|
@cells << Cell.new
end
end
def print_me
end
end
class Cell
attr_accessor alive
def initialize
end
def alive?
false
end
end
class BorderCell
def alive?
false
end
end
b = Board.new
b.print_me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment