Skip to content

My edits to a paired battleship project with isikapowers

Notifications You must be signed in to change notification settings

RowanDW/Terminal_Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Battleship

Table of contents

General info

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.

Learning Goals

  • 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

Technologies

Project is created with:

  • Ruby version: 2.7.2

Setup

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).

  1. Clone the repo
  2. Change into the directory:
    $ cd ../battleship
    
  3. Run by entering the following into Terminal:
    $ ruby battleship_runner.rb 
    

Features

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

Status

Project is: in progress

Contact

Created by

~ feel free to contact us! ~

About

My edits to a paired battleship project with isikapowers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages