Skip to content

BLooDBRothER/Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BATTLESHIP

About the Project

Battleship is a game created using React js.

What I have used

  • React hooks
  • SCSS
  • Factory Function
  • Jest - Testing
    • Unit Testing
    • Mock Functions

Features

  • Drag and Drop
  • Randomized ship Arrangements - Recursion.
  • AI for the computer moves.

* AI- The computer moves try out the adjacent grid after hitting the ship.

To Play the Game Locally

Clone and run.

git clone https://github.com/BLooDBRothER/Battleship.git
cd Battleship

Runs the app in the development mode.

npm install
npm start

Open http://localhost:3000 to view it in your browser.

To Run the tests

npm test

Reference