Skip to content

Instantly share code, notes, and snippets.

View Szarko's full-sized avatar

Mitchell Szarko

  • San Francisco, CA
View GitHub Profile
@Szarko
Szarko / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:55 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class BoggleBoard
def initialize(grid)
@grid = grid
end
def create_word(gridlayout, *coordinates)
coordinates.map { |coords| gridlayout[coords.first][coords.last]}.join("")
end