GithubHelp home page GithubHelp logo

battleships's Introduction

Temporary Russian Pirates

Ship

- knows if it is hit or not
- knows how many hits it has received so far
- has status: knows if it is sunk or floating
- has properties (size [aka name of the ship], location)

Board

- knows what ships it has
- knows the status of each ship
- knows when no more ships
- responsible for informing game that there are no more ships
- has size/dimensions (aka range A1..J10)
- has to inform opponent's board about each hit

Person

- can ask the board to place ships
- call hits on opponent's board

Rules

- One player can have ten ships :
	 1 battleship (size 4)
	 2 cruisers (size 3)
	 3 destroyers (size 2)
	 4 submarine (size 1)
- The ships cannot be placed on another ship
- The ships must be placed inside the dimensions of the Board
- When all the segment of the ship are hit, the ship sinks

###Extensions
	- Ships cannot be placed adjacent to one another

Game

- Initialises the game
- A player can call one hit attempt at one time
- Turn then passes to next player
- The first player that makes all the other player's ships sink, wins the game

battleships's People

Contributors

codepreneur avatar mserino avatar

Watchers

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