Skip to content

Instantly share code, notes, and snippets.

what is going on
@benneuman
benneuman / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 23:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
#PSEUDOCODE
#take 'dice_grid' as input to initialize, set @dice_grid = dice_grid
#define #create_word - no longer needs 'board' parameter, can just use @dice_grid. only need *coords param
#define #get_row and #get_col like before, but no 'board' parameter, act on @dice_grid
#define #get_coord: take array.length == 2 as input, return @dice_grid[array[0][array[1]]
class BoggleBoard
def initialize(dice_grid)
@dice_grid = dice_grid
end