RYAN_KELLY.DEV
← Back to Experiments

[ LOOP_SORT_SOLVER ]

> An interactive solver engine for Loop Sort puzzle levels. Upload or edit structured map files in fully exposed form, switch color schemes, and step through the computed optimal solution path.

[ PUZZLE_LEVEL_VISUALIZER ]

LEVEL: Level 259 (Super Hard - Fully Exposed)
Click "Run Auto-Solver" to compute the optimal move path, or fill in mystery slots to assist the solver.
QUEUE LOOP STAGINGBOUND BY ROPELEVEL 259
ROPE BOUND SHELF
T1
T2
T3
T4
T5
B_TOP
0/4
CIRCUIT INLET
CIRCUIT OUTLET
◄ ◄ ◄ TRACK INBOUNDCONTINUOUS CONVEYOR TRACKTRACK OUTBOUND ► ► ►
L1
L2
L3
L4
L5
B_L1
0/4
B_L2
0/4
B_L3
0/4

[ MAP_STRUCTURED_FILE ]

PRESETS:
STRUCTURED TEXT FORMAT (KEY: VAL)

[ HOW_LOOPSORT_SOLVER_WORKS ]

Loop Sort is a color-sorting strategy puzzle featuring vertical block stacks (racks) positioned along a continuous conveyor loop track. Blocks must be transferred between stacks or deposited into colored target box cars to complete each level.

1. Structured Text Map Specification

While in-game levels obscure unrevealed tiles with mystery icons, this solver accepts map definitions in fully exposed form. You can upload or paste structured text files (key-value text or JSON) defining the colors of every stack position and target box.

2. Color Permutation & Switching

The layout structure and rack positions remain consistent across level variants while colors change. Use the "Switch Colors" button to permute colors across the exact same structural puzzle layout and verify solver adaptability.

3. Algorithm & Graph Search State Space

The solver models each state as a tuple of rack block stacks and target box progress. It uses an A* search graph traversal algorithm with state hash deduplication. Greedy target box deposits are evaluated alongside stack-to-stack transfers to find the minimal sequence of moves required to win.