Battleship is a classic board game where players place one or more ships on a grid board, and then take turns trying to “sink” the other player’s ships by guessing their coordinates. The game ends when one player’s ships are all hit and “sunk”.
This project uses Ruby to build a command line implementation of the classic game Battleship, in order to demonstrate Test-Driven Development (TDD), algorithmic thinking, and Object Oriented Programming.
- Ruby 2.7.2
- Clone the repository
- cd into the root directory
- Run the game
ruby battleship_runner.rb - You may run the RSpec test suite locally with
bundle exec rspec
- Game board is presented in a grid, with the following:
.represents an empty spaceSrepresents a ship on your boardHrepresents a hitMrepresents a shot that missedXrepresents a sunken ship
- Option to customize board size from 4 to 10 rows/columns



