Skip to content

noxmwalsh/react-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Battleship

This is just an example iteration of the classic boardgame "Battleship" done in React.

Features

  • There are unit tests to check for basic functionality
  • Uses Redux/React as the primary framework behind the application (just like it says on the tin)
  • There's a history log of the current game
  • The human player can decide ship placement (with horizonal/vertical settings)
  • There's a sembalence of an AI playing the game (although it doesn't play at the most optimum way).

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

A coding challenge for implementing Battleship in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors