Simple version of the game battleships. It allows a single human player to play a one-sided game of Battleships against ships placed by the computer.
The program creates a 10x10 grid and places a number of ships on the grid at random with the following sizes: • 1x Battleship (5 squares) • 2x Destroyers (4 squares)
The player select a cell, to specify a square to target. Shots result in hits, misses, or sinks. The game ends when all ships are sunk.
To clone the repository execute the command git clone https://github.com/boodland/battleships-challenge.git
. If you don't have git
installed please follow the instructions in https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
To install the dependencies execute the command npm install
within the root folder. If you don't have npm
installed please follow the instructions in https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
To start the app locally execute the command npm run start
. Open your browser and navigate to http://localhost:4200/. Happy battle!
To run the tests execute the command npm run test
.
To build the app execute the command npm run build
.
The app has been deployed using netlify and is available here. Happy game!