Correct Sequence
Mastermind

Welcome to Mastermind!

Crack the secret code in ten attempts or less.

  • The Secret Code: A hidden sequence of 4 colors is generated at the start. Colors can be repeated within the code, with 6 colors to choose from.
  • Feedback System: After each guess, you will receive pegs to help you narrow down the sequence:
    • White Peg: One of your colors is the correct color and in the correct position.
    • Black Peg: One of your colors is in the code, but in the wrong position.
  • The Duplicate Rule: Feedback is a 1-to-1 match. You get awarded a peg each time a color in your guess appears in the secret code.

How to Play

  1. Place Your Guess: Click the colored circle buttons to fill a row with your chosen sequence, and use the Undo button to edit the current row before submitting.
  2. Submit: When satisfied with your guess, click Check to lock it in and get feedback.
  3. Analyze & Repeat: Use the feedback to narrow down the code. Guess the sequence within 10 tries to win!
Developed by Amit Joshi GitHub: @amitjoshi2724
Wins: 0/0 (0.00%)
Current Streak: 0
Longest Streak: 0
Show Numbers: