Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.56 KB

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