Skip to content

React app for the game mastermind. Hosted on GitHub pages. Try to complete the game in less moves than the genetic algorithm at the link in the repo's About section.

License

Notifications You must be signed in to change notification settings

GlennChia/mastermind-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mastermind-logo

License: MIT

Mastermind

Mastermind is a classic problem-solving game that challenges players identify patterns and respond to turn feedback in a bid to guess the hidden sequence of colors. This application implements 2 algorithms to solve the game of Mastermind. First, a naive solver that solves the colors iteratively by slot. Second, a genetic algorithm inspired by Dungyichao's Python implementation, reimplemented and modified in JavaScript. The application is built using the React framework and hosted on GitHub pages here. Users can start games with 2 settings (a pool of 5 or 6 colors) and pit their solving skills against the naive and genetic algorithm solvers.

Navigation

  1. User interface
  2. Running the application locally
  3. Deployment to GitHub pages
  4. Contributing

User interface

sample-ui

Running the application locally

Run the following to start the app locally:

npm install
npm run start

Deployment to GitHub pages

This static site is deployed to GitHub pages. Run:

npm run deploy

Contributing

Before making commits, lint the code

npm run lint:fix

About

React app for the game mastermind. Hosted on GitHub pages. Try to complete the game in less moves than the genetic algorithm at the link in the repo's About section.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published