A classic guessing game for two players.
git clone https://github.com/mickaelpham/battleship
bundle install
gem build battleship.gemspec
gem install battleship-0.1.0.gem
This should take care of installing the battleship
executable in your PATH
,
allowing you to start a new game from the shell:
$ battleship
Welcome screen
Players prompt
Ship positioning
Strike result
Last strike
Winning screen
git clone https://github.com/mickaelpham/battleship
cd battleship
bundle install
bin/console
Then, within the Pry console:
Battleship::Game.new.run