Code Monkey home page Code Monkey logo

battleship's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.