Skip to content

at1as/terminal-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal-Battleship

Battleship game for the terminal

Usage

$ git clone https://github.com/at1as/terminal-battleship.git
$ cd terminal-battleship
$ ruby play.rb

Run with the CHEAT environment variable set to true to see the solution

CHEAT=true ruby play.rb

Or withoutout for the standard game

ruby play.rb

Gameplay

   A B C D E F G H I J
   –––––––––––––––––––
1 |. . . . . . d d . .| 1
2 |. . . . . . . . . .| 2
3 |. . . . . . . . . .| 3
4 |. . . . . . . . . .| 4
5 |. . . . . . . . . .| 5
6 |. . . s C C C C C .| 6
7 |b . . s . . . . . .| 7
8 |b . . s c . . . . .| 8
9 |b . . . c . . . . .| 9
10|b . . . c . . . . .| 10
   –––––––––––––––––––
   A B C D E F G H I J

Requirements

  • Built on ruby 2.4.0 on macOS

TODO

  • Tests
  • Play against the computer

About

Battleship game for terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages