in fulfillment of a code challenge
The well-known game of Battleship
https://en.wikipedia.org/wiki/Battleship_(game)
https://www.hasbro.com/common/instruct/Battleship.pdf
https://www.youtube.com/watch?v=q0qpQ8doUp8
| ship type | dimensions |
|---|---|
| Carrier | 5x1 |
| Battleship | 4x1 |
| Submarine | 3x1 |
| Cruiser | 3x1 |
| PT Boat | 2x1 |
- install gem
battleship
battleship -h is available, and explains any additional configurable options.
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Battleship project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.