Stuck on a game, on a board or on screen? Copy each of your guesses here with the feedback you got: the solver counts the codes still possible and suggests your next move.
4 pegs, 6 colors, repeats allowed
It goes through every code of the level and keeps only those that would have given exactly the feedback you entered. It's the reasoning you do in your head, carried all the way through: each piece of feedback rules codes out, and soon only a handful remain.
The safest move is the still-possible code that, in the worst case, leaves the fewest codes behind. Comparing every move takes a lot of computing: as long as more than 600 codes remain, the solver only suggests a code that is still possible, consistent with all your feedback, and says so plainly.
Zero possible codes means no code can produce all the feedback you entered. The cause is almost always a black and a white peg swapped, a color copied wrong or the wrong level, for example Easy instead of Classic when the code holds a repeated color.
Rather work it out yourself? Play Mastermind online, watch the computer crack your code or start with the 2-minute tutorial.