Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 715 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 715 Bytes

This is a sample project, created in React to display competency in coding. The game starts initially with 2 ships for each player and is definied using the numShips variable. This can be modified to use more or less ships. The ships are randomly generated and the game begins with player one firing at player two. The player's ships are displayed as grey shapes on the grid and a hit displays red, blue displays a miss. A history is shown on the sidebar and the game will continue until it is either restarted or there is a winner.

Usage

Clone the repository using git clone git@github.com:bnrobinson93/battleShipt.git

This project uses yarn to run and requires Node (npm).

Start by running yarn start