Skip to content

Instantly share code, notes, and snippets.

@michaelerobertsjr
Created February 9, 2020 22:48
Show Gist options
  • Save michaelerobertsjr/791ca9564cc870bc7df41f2b5c62fb4b to your computer and use it in GitHub Desktop.
Save michaelerobertsjr/791ca9564cc870bc7df41f2b5c62fb4b to your computer and use it in GitHub Desktop.
Battleship mob sessions

Battleship

A remake of the classic board game using javascript and html.

Suggested order of build

Start with User interface

  1. Display grid of given size
  2. Create a data structure to hold ships
  3. Display ships on grid (based on data structure)
  4. Create the main views (instructions screen, game screen, game over screen)

Add Game Mechanics

  1. Allow users to click on a grid square to guess
  2. Display what spaces have taken shots or hits
  3. Alternate players
  4. Game controller

AI (Machine player)

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