sfjc.dev
← Home

5 Can Sorting

Five doodle soda cans have a hidden left-to-right order. You start with no cans correct. After each move you only see how many are in the right place. Reach 5 correct to win.

Moves: 0
1–5 pick · Enter apply · H hint · Esc clear · N new
Correct0

Theory (worst case)

Swap: optimal play with positional feedback only needs at most 7 moves to identify the hidden order (paper).

Shift mode: choose Insert (pick source slot then destination) or Swap (two slots). Insertion alone sorts any layout in at most 4 moves (diameter on S₅); swaps are optional when helpful.

Feedback history

Newest results on top after you apply a move.