This project is a command line implementation of the game Battleship. Users can try their luck against a computer opponent. The program is place user and computer ships, display turns, and has an adjustable board size.
This version includes a personal extension that makes the computer's actions more intelligent.
- Utilize Test Driven Development
- Practice Algorithmic Thinking
- Create an Object Oriented solution to a problem without being given full specifications
- Work in a pair
- Use Pull Requests to collaborate with a partner
Project is created with:
- Ruby version: 2.7.2
To run this program, save a copy of this repository locally. In the MacOS application 'Terminal,' navigate into the battleship directory. Then, run it using ruby (note: '$' is not typed).
- Clone the repo
- Change into the directory:
$ cd ../battleship - Run by entering the following into Terminal:
$ ruby battleship_runner.rb
List of features ready and TODOs for future development
- Battleship is fully playable from the command line
- Users are able to adjust the board size (up to a width of 10 columns recommended)
- Game updates users on the outcome of each turn and the end of game
To-do list:
- Board size formatting need work after 10 columns. Further iterations would fix this limit.
- Refactor code to be cleaner and simpler
Project is: in progress
Created by
~ feel free to contact us! ~