Mastermind Solver generates possible codes
The tool builds every code allowed by your custom color count, custom length, and repeated-color setting before applying any feedback.
Free Online Mastermind Solver
Enter each guess, record the black peg / white peg feedback or bulls / cows counts, and let the Mastermind Solver filter possible secret codes, flag contradictions, and recommend a practical next guess in your browser.
Use this single Mastermind Solver for classic colored-pegs Mastermind, Bulls and Cows number games, and Code Breaker board-game variants. Set the code length and color count, then add each guess with exact-position and color-only feedback.
Changing length, colors, or duplicate rules clears the current history.
This Mastermind Solver is only a local code-breaking puzzle helper. It does not provide online matches, an account system, a puzzle database, saved leaderboards, multiplayer, ranking, or any external data lookup.
Remaining possible answers
0
Shown
0
Expected remaining
-
The next guess is chosen from current candidates using a simple split search, so it favors guesses that divide the remaining answers well.
| # | Guess | Feedback | Action |
|---|
Showing the first matching candidates so the page stays fast.
This page keeps Mastermind Solver, Bulls and Cows Solver, and Code Breaker Solver together because they all use the same exact-position and color-only feedback logic.
Record each guess row with black pegs and white pegs, or switch the labels to bulls and cows when you are solving a digit-based puzzle.
After every feedback row, the Mastermind Solver keeps only the secret codes that would produce the same response, then flags contradictory feedback when nothing can match.
Use the recommended next guess when you want a fast, practical move that splits the current candidate set instead of guessing blindly.
The Mastermind Solver is a local candidate-filtering helper for recreational code-breaking puzzles.
The tool builds every code allowed by your custom color count, custom length, and repeated-color setting before applying any feedback.
For each history guess, exact-position matches become black pegs or bulls, while correct-color wrong-position matches become white pegs or cows.
The recommendation compares feedback buckets across current candidates and prefers a next guess that should leave fewer possibilities on average.
Use these tips to get accurate Mastermind Solver results for colored pegs, digit codes, and Code Breaker variants.
Choose the number of positions and available colors or digits before entering history. If your puzzle allows duplicate symbols, keep repeated colors enabled.
Black pegs, bulls, or exact matches mean correct symbol in the correct position. White pegs, cows, or color-only matches mean correct symbol in the wrong position.
This page is intentionally not an online game platform. It is a browser-only helper for people solving a physical, printed, classroom, escape-room, or game-code puzzle.
No accounts, no puzzle database, no leaderboards, no online battle mode, and no external data are involved.
Common questions about using the Mastermind Solver as a Bulls and Cows Solver and Code Breaker Solver.
Yes. Bulls and Cows uses the same feedback idea: bulls are exact-position matches and cows are correct symbols in the wrong position. Switch the wording in the Mastermind Solver if you prefer bulls/cows labels.
Yes. Many Code Breaker board-game variants use Mastermind-style exact and color-only feedback, so the same candidate filtering works on this combined page.
Yes. You can change the code length and number of available colors or symbols, then the Mastermind Solver rebuilds the candidate set for that configuration.
Contradictory feedback means no possible secret code would produce every row you entered. Check whether a black/white peg count, bulls/cows count, duplicate setting, color count, or code length is wrong.
The tool tests candidate guesses against the remaining possible answers and scores how evenly each guess splits the feedback outcomes. It then recommends a practical guess with a low expected remaining count.
No. The Mastermind Solver runs in browser JavaScript after the page loads. Guesses, feedback, candidate lists, and recommendations stay local to your device.
No. This is only a local code-breaking puzzle helper. It does not include online matches, an account system, a puzzle library, saved games, leaderboards, or multiplayer.
SolverBox keeps puzzle helpers free, browser-based, and focused on solving the puzzle in front of you.
After this Mastermind Solver, browse more game, logic, word, and number solvers.
No account required — solve code-breaking puzzle feedback directly in your browser.