Sha256: 306a8a139562bc8734df06258692bb76e09b1752757644d0ac5974935ec744d2
Contents?: true
Size: 917 Bytes
Versions: 9
Compression:
Stored size: 917 Bytes
Contents
# Board! **CHALLENGE: WRITE A BOARD GEM!** ## Contribution Standards - Tests on Pull Requests - Beautiful Code! ## Requirements - A `Board::Board` class. - Instantiate it with: - Height - Width - Default Value for the cells, otherwise they are empty. - The board is full of `Board::Cell`s which have the following properties: - Coordinates -- Make make this its own `Board::Coordinates` class with an X and Y value - Value - This would be the checker in checkers, piece in chess, mine in minesweeper... - Include the Enumerable module. - Methods for returning different arrangements of cells of the on the board: - Horizontals - Verticals - Diagonals - Methods for returning cells: - Return the neighbors of a given coordinate. - Maybe: Return a cell given coordinates and a delta. [0,2] and [1,1] should return the cell at[1,3] - Whatever fun methods you can think of...
Version data entries
9 entries across 9 versions & 1 rubygems