Skip to content

Instantly share code, notes, and snippets.

@billybonks
Last active July 23, 2019 15:36
Show Gist options
  • Save billybonks/2f0e01df929f62e33a3418f97f97af8d to your computer and use it in GitHub Desktop.
Save billybonks/2f0e01df929f62e33a3418f97f97af8d to your computer and use it in GitHub Desktop.

Goal

We want to build a MVP of a battleships grid. If you have not played battleships here is an example http://en.battleship-game.org/

Features

The application should have 3 routes.

  • A home page where i can choose to either enter: placement test route, or test game route.

Placement test route

  • When i enter the placement test route it should automatically place the Ships.
  • There should be a button to shuffle the ships.

Test game route

  • When i enter the test game route it should automatically place the Ships.
  • The placement of the ships should be hidden.
  • When i click the one of the cells it should show what is underneath.
  • There should be a button to reset and reshuffle the board.

Ship placement and grid details

  • 10x10 grid
  • 6 ships of random size between 2 and 5
  • 3 should be vertically oriented and 3 should be horizontally oriented.

You should have tests.

Technology

The only requirement is to use ember octane.

Future features

While creating your MVP please take into consideration, that this some future features we would like to add.

  • We want to define specialised ships for example a submarine, it's attributes would be it's display size and orientation.
  • We would want to be able to modify the grid size.
  • A user should be able to select a ship and place it on the map, and they should be able to pick it up and drag it to another location.
  • Eventually we want to make it multiplayer
  • The end state of the game would be when you have destroyed all of your opponents ships
@mgowtham
Copy link

hi Sebestian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment