Skip to content

Instantly share code, notes, and snippets.

View ahardy55's full-sized avatar

Adam Hardy ahardy55

View GitHub Profile
@ahardy55
ahardy55 / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:57 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
dice_grid = [["b", "r", "a", "e"],
["i", "o", "d", "t"],
["e", "c", "l", "r"],
["t", "a", "k", "e"]]
class BoggleBoard
def create_word(board, *coords)
coords.map { |coord| board[coord.first][coord.last]}.join("")
end