Objective
Mastermind is a code-breaking game. One player is the Codemaker, who creates a secret
pattern of 4 colored pegs. The other is the Codebreaker, who tries to guess the pattern
within 10 turns.
Gameplay
- Set the Code: Under the bottom teal shield, place 4 pegs of any color combination from
the palette.
- Choose an Opponent: Once all 4 pegs are set, choose either the logic-based solver or the
LLM opponent to begin the game.
- Step-by-Step: Use the next-move button to reveal each guess one turn at a time and watch
the deduction process unfold.
Feedback Pegs (Key Pegs)
After each guess, feedback is displayed in the 2x2 grid to the right of the row:
- ● Red Peg: One of your pegs is correct in both
color and position.
- ● White Peg: One of your pegs is correct in
color but in the wrong position.
- Empty Slot: No matching peg exists in the secret code for remaining slots.
Only the 2x2 key-peg grid beside each row represents scoring feedback. The small side
holes on the left are decorative.
Note: The feedback pegs do not correspond to specific socket positions; they are
simply counts of correctness.