Skip to content

shidel-dev/ruby-command-line-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ruby-command-line-battleship

A command implementation of game battleship written in ruby.


glossery:

a = aircraft carrier

b = battleship

c = crusier

d = distroyer

s = submarine


To make a game:

game = Game.new()


To place pieces:

game.place_ship(type,orientation,cordinates) ex.. game.place_ship('b','horizontal',[2,'a'])


to start:

game.start


to fire:

game.fire(cordinates) ex.. game.fire([4,'j'])

About

A command implementation of game battleship written in ruby.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages