GithubHelp home page GithubHelp logo

hack-night-battleship's Introduction

Battleship!

Battleship is a game where two players play on two separate boards and try to sink eachother's battleships. The boards are grids with coordinates and battleships are pieces that occupy one or more spaces on the grid, up to 1 x 5.

Battleship

The grid is identified in the game with lettered rows and numbered columns. One at a time, each player will call out a position to shoot at the other player's board. If the space is occupied by a battleship, that player will make note, and on the next turn check an adjacent location to try to guess the remaining positions of the ship.

Each players starts by positioning the following ships on the board:

  • Aircraft Carrier (1): 5 x 1
  • Battleship (1): 4 x 1
  • Cruiser (1): 3 x 1
  • Destryoer (2): 2 x 1
  • Submarine (2): 1 x 1

Battleship board and ships

A battleship is sunk when the opposing player guesses all grid locations of one of your battleships. The game is won when all of your opponent's battleships have been sunk.

Implementation

We are going to build a player to player version of this across a network. This will be a two part challenge: you will need to establish a connection with another player and create the game/UI logic. The idea is that you want to be able to send moves to the other player, and the other player will let you know whether it is a hit or a miss, or whether you sunk one of their ships.

hack-night-battleship's People

Contributors

nicolecarpenter avatar

Watchers

Raymond T. Hightower avatar James Cloos avatar  avatar Derek Smith 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.