Lockup

Ten digits, a few slots, and two numbers to reason from.

How to play

  1. A code of digits is locked in. Digits can repeat.
  2. Print a full row and two numbers appear beside it. The green one counts the digits that are right and in the right place; the orange one counts the digits that are in the code but somewhere else.
  3. You are never told which is which. That is the puzzle.