How to play Mastermind
See the Wikpedia page
for a more complete description of the rules. In brief, your goal is to guess a secret code made up
of a series of colors which can have repeats. Each guess is given feedback in the form of:
- A black peg indicating one color is in the correct position
- A white peg indicating one color is part of the code but in the wrong position
If you're familiar with Wordle, it plays out in a similar style, but unlike Wordle, the player is
not told which slot each black/white peg corresponds to.
In this variation on the game, you start with a few rounds of optimal guesses, and you must figure
out the secret code in one turn. There is always enough information given that the code can be
determined logically, no guessing is required. See the README on GitHub for some more information
and hints.