-
Clone this repository to your terminal.
-
From the command line, run
ruby runner.rb
-
Follow the given prompt to play.
-
You will be given 2 ships to place. Select the coordinates to place your ships by looking at your board and entering the coordinates. If your coordinates are not valid, you will be asked for new coordinates.
- When both of your ships have been placed, you will be shown a rendering of your board and your opponent’s (the computer) board.
-
Follow the prompts to select the coordinates to fire upon.
-
The computer’s board will update to reflect if you hit or missed a target and your board will update to reflect the computer’s attempted hits.
-
You will continue until the first player sinks all of their opponent’s ships!
You can test any rspec file on the command line rspec spec/file_name.rb
This project is the result of a partnership between 2 Module 1 students at Turing: