Skip to content
A simple CLI for a classic game
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
exe
img
lib
spec
.gitignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
README.md
Rakefile
battleship.gemspec
config.reek

README.md

Build Status

Battleship

A classic guessing game for two players.

Installation

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

Screenshots

Welcome screen

screen-01

Players prompt

screen-02

Ship positioning

screen-03

Strike result

screen-04

Last strike

screen-05

Winning screen

screen-06

Development

git clone https://github.com/mickaelpham/battleship
cd battleship
bundle install
bin/console

Then, within the Pry console:

Battleship::Game.new.run
You can’t perform that action at this time.