-
-
Save brentluna/34e3c44384d33dc5bf576dd1b943003f 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 | |
def initialize(grid) | |
@grid = grid | |
end | |
def self.from_file(file) | |
grid = parse_file(file) | |
Self.new(grid) | |
end | |
def parse_file(file) | |
#take file and make multi-dimensional arary | |
end | |
end | |
board = Board.from_file(file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment