Created
September 30, 2015 19:01
-
-
Save michaelwehrley/ef1c58b7b86ce6c584d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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