Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Deutsch common-nighthawk

View GitHub Profile
View 0.2.1-boggle_class_from_methods.rb
class BoggleBoard
attr_reader :board
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end