A game of mastermind, built in Elm.
In mastermind the goal is the find the sequence of colors, in as few attempts as possible. For every combination you submit, you will receive a hint about how many colors:
- Color and position matches (✔)
- Color matches, but position differs (♦)
This game is available to play here.
The toolchain (Elm compiler and elm-format) is installed through npm:
npm install
npm run build # writes index.html
npm run build:optimized # writes optimized-index.html
npm run format # elm-format the sources
npm run format:check # verify formatting without writingElm packages are declared in elm.json; the compiler downloads them into elm-stuff/ on the first build.
- [Wikipedia article about the game](https://en.wikipedia.org/wiki/Mastermind_(board_game\))
- Video explanation about the rules