the classic game of battleship
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.rubocop.yml
.simplecov
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
battleship.gemspec

README.md

Battleship Build Status Maintainability Test Coverage

in fulfillment of a code challenge

Spec

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

Usage

  • install gem
  • battleship

battleship -h is available, and explains any additional configurable options.

Development

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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Battleship project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.