P s

Magicraft Lights On Solver

Set up the initial board, experiment with the in-game toggle behaviour, and generate the shortest path to light every tile. Everything runs locally so you can mirror puzzles from Magicraft without leaving your browser.

Quick steps

  1. Switch to Set State and click the tiles to match your in-game puzzle.
  2. Try Solve Mode to mimic how toggles affect neighbouring tiles.
  3. Hit Solve to generate the optimal sequence of moves.

Mode

Toggle individual lights to match the puzzle input.

How it works

The solver uses a breadth-first search to examine every possible combination of toggles. Each move flips the selected light and its horizontal and vertical neighbours, matching the behaviour inside Magicraft. When a path that lights up the entire board is found, you'll see the steps above.