Skip to content

kbhoffmann/battleship

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Title

languages PRs rspec simplecov All Contributors

Background and Description

"Battleship" is a paired project from Turing School of Software and Design in which students use Ruby to build a game to imitate the board game Battleship. It is built on a smaller scale than the classic game and runs in a REPL interface. The game is played against a simple computer player.

(Screen Shot 2022-02-13 at 12 31 43)

Original Project and Requirements can be found here.

Learning Goals

  • Utilize Test Driven Development
  • Practice Algorithmic Thinking
  • Create an Object Oriented solution to a problem without being given full specifications
  • Use Pull Requests to collaborate with a partner

Requirements and Setup (for Mac):

  • Ruby Version 2.7.2

Gems Utilized

  • RSpec
  • Pry
  • SimpleCov

Setup so you may play!

  1. First clone this repo to your local machine! - using ssh key
    $ git clone [email protected]:kbhoffmann/battleship.git
  2. Run gem install bundle in your terminal

Time to play against the computer!

  1. In your terminal run ruby battleship_runner.rb
  2. Follow the instructions provided to set up your ships on the board.
  3. Take your first guess to try and hit a computer's randomly placed ship.
  4. The computer will take a random shot and try to hit one of your ships.
  5. Take turns making shots until either you or the computer sinks both ships! That will determine the winner!

Contributors

https://avatars.githubusercontent.com/u/84674761?s=400&u=c9fbc381c9da0cff613eeaa15e2e9f38106dedc4&v=4
Kerri (she/her)

💻 ⚠️ 👀
https://avatars.githubusercontent.com/u/84674761?s=400&u=c9fbc381c9da0cff613eeaa15e2e9f38106dedc4&v=4
David (he/him)

💻 ⚠️ 👀

This project follows the all-contributors specification.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%