/battleships

Primary LanguageTypeScript

Battleships

Install instructions

  1. Clone the repo
  2. Download node.js (if not already installed)
  3. Run yarn to install dependencies
  4. Run yarn start to begin playing
  5. Enjoy :)

Playing the game

The game requires a few user inputs:

  • Board Size: A number to indicate how large you want the board to be. E.g. 10 will create a 10x10 board
  • Number of ships: A number to indicate how many ships you want to draw onto your board
  • X Coordinate: A number to indicate an action on the X axis
  • Y Coordinate: A number to indicate an action on the Y axis
  • Direction: An option to indicate the placement direction of the ship. E.g. 'right' or 'down'