Skip to content

Instantly share code, notes, and snippets.

@nihwang
nihwang / 0.2.1-boggle_class_from_methods.rb
Created January 10, 2014 00:29 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board) #this means we can have more than one board
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end