A simple Mastermind game built with the principles found in the Clean Architecture book, mainly creating layers and boundaries in the application to make it easy to change.
For example, you can swap out the EnglishLanguage language for FrenchLanguage by changing one line of code. You can change the game from a console interface to a GUI with one line of code (not including the GUI implementation).
- Run
npm installto install dependencies - Run
npm run buildto build the project - Run
npm startto start the game
Enter a list of colors separated by spaces to "guess" the secret. The game will tell you how many colors are correct, how many are in the correct position and how many are incorrect. Keep guessing until you get the secret or run out of guesses (10).
Download the binary from the latest release and run in your terminal with:
./mastermind-macos-x64- Run
npm installto install dependencies - Run
npm run buildto build the project - Run
npm run compileto compile the project to a binary