GithubHelp home page GithubHelp logo

battleship's Introduction

Battleship

GitHub Contributors GitHub language count GitHub top language

drawing

Table of contents

General Info

Battleship was a paired project assigned to us during week 2 of Mod 1 of 4 in Turing's School of Software & Design. Our challenge was to use Ruby to build a command line implementation of the classic game Battleship.

Battleship is a classic board game where players place one or more ships on a grid board, and then take turns trying to “sink” the other player’s ships by guessing their coordinates. The game ends when one player’s ships are all hit and “sunk”.

Learning Goals

  • Utilize Test-Driven Development (TDD)
  • Practice algorithmic thinking
  • Create an Object-Oriented solution to a problem without being given full specifications
  • Work in a pair, using Pull Requests to collaborate

Technologies

  • Ruby 2.7
  • RSpec
  • Pry
  • SimpleCov
  • Git
  • Atom

Usage 🚢

In your terminal, run git clone with the copied URL.

Navigate into the battleship directory and run ruby battleship_runner.rb.

Welcome to our game! You will be prompted to place your ships, similar to the image below.

Screen Shot 2022-11-16 at 12 11 44 PM

After ship placement, you and the computer will take turns attempting to hit each other's battleships. May the odds be in your favor.

battleship's People

Contributors

naomiyocum avatar james-e-white avatar

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.