A lock needs a three-digit code, and five guesses have left clues behind. Can you find the code using only what each guess tells you? Take a moment with the clues before reading on: the satisfying part is noticing how one answer rules out several possibilities at once.
Read the clues carefully
The guesses are 682, with one digit correct and in the right place; 614, with one digit correct but in the wrong place; and 206, with two digits correct but both in the wrong places. Then 738 has no correct digits, while 780 has one correct digit in the wrong place.
Start with 738: 7, 3, and 8 are out. In 780, that leaves 0 as the one correct digit, and it cannot be third. The 206 clue says 0 and one other digit belong in the code, but neither sits where that guess puts it.
Let each guess narrow it
Because 0 cannot be second in 206 or third in 780, it must be first. In 682, 8 is already ruled out and the first spot is occupied by 0, so the correctly placed digit must be 2 in the third spot. That leaves 4 for the middle: in 614, it is the only digit that fits, and it appears in the wrong position there.
The code is 042. Check it against every clue: 682 shares a correctly placed 2, 614 shares a misplaced 4, and 206 shares two misplaced digits, 0 and 2. The other two clues fit as well. When you make a puzzle of your own, clues that eliminate whole digits first are a good place to begin.
