Skip to content

Simple React application which allows the user to play battleships game

Notifications You must be signed in to change notification settings

boodland/battleships-challenge

Repository files navigation

Battleships Challenge

Requeriments

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.

Clone repository

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

Install dependencies

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

Start the app

To start the app locally execute the command npm run start. Open your browser and navigate to http://localhost:4200/. Happy battle!

Run the tests

To run the tests execute the command npm run test.

Build the app

To build the app execute the command npm run build.

Use the app

The app has been deployed using netlify and is available here. Happy game!

About

Simple React application which allows the user to play battleships game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published