Skip to content

mickaelpham/battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple CLI for a classic game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages