Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitlangton/bored
Board::Bored
https://github.com/kitlangton/bored
Last synced: 4 days ago
JSON representation
Board::Bored
- Host: GitHub
- URL: https://github.com/kitlangton/bored
- Owner: kitlangton
- Created: 2016-11-05T00:37:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T02:59:12.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T08:45:22.591Z (26 days ago)
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bored::Board!
**CHALLENGE: WRITE A BOARD GEM!**
## Contribution Standards
- Tests on Pull Requests
- [Beautiful Code!](https://github.com/styleguide/ruby)## Requirements
- A `Bored::Board` class.
- Instantiate it with:
- Height
- Width
- Default Value for the cells, otherwise they are empty.
- The board is full of `Bored::Cell`s which have the following properties:
- Coordinates -- Make make this is its own `Bored::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...