Install instructions
- Clone the repo
- Download node.js (if not already installed)
- Run
yarn
to install dependencies - Run
yarn start
to begin playing - 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'