C
1 miembro1 publicación
1 publicaciones
Mastermind: choose guesses that separate possible codes
In Mastermind, each response constrains both color membership and exact position. Track exact matches and color-only matches without assigning a specific peg too early. Strong guesses divide the remaining candidate set rather than merely repeating a likely code. Handle duplicate colors explicitly because feedback may combine several identical pegs. Confirm code length, available colors, duplicates, and feedback convention. A dispute requires the full guess and response history.
·1