Simple Klotski:Sliding Block Puzzle Generator for Traffic Jam, Block-Clear Games
Living Failure
$21.99
$43.99
50%OFF
(no ratings)
Jump AssetStore
Generate block puzzles in 5 modes. Traffic-jam lanes, dense classic boards, arrow clearing, snake ropes, and 3D structures. Proven par on every board. Undo, hints, demo included. No coding required!Hand-placing blocks, then playing your own level twenty times to find out whether it's a 6-move puzzle or a 40-move one?Generate them instead — solved, rated, and stamped with a proven par, board after board.Simple Klotski is a sliding-block puzzle toolkit with five modes in one workflow. It builds boards, solves each one EXACTLY — the true shortest solution, how many shortest solutions exist, every move — and hands them over as ready-to-use assets. You bring the scene and the art; it handles the puzzle.OFFLINE DOCUMENTATION HERE!FIVE WAYS TO PLAY- GRIDLOCK — the traffic-jam classic. Wide blocks slide sideways, tall blocks up and down. Clear a lane and drive the hero out through the exit. Sparse, deductive, and instantly readable in a screenshot.- KLOTSKI — the dense wooden puzzle your grandparents owned. Everything slides freely, nothing has room, and the big hero block has to reach its target. Long, satisfying shuffles — the reference layout runs 90 moves.- CLEAR — every block wears an arrow; tap it and it flies off the board that way, if the path is free. Order is the whole puzzle. No dead ends, ever (see below).- CLEAR 3D — the same law in a block structure you orbit, pan and zoom around, peeling it apart layer by layer. Six directions instead of four.- CLEAR SNAKES — the same law, tangled. Pieces are ropes bent into Ls, Us and long snakes, each with one arrowhead. Tap one and it slithers out head first, its whole body following the same track — so only the single lane ahead of the head has to be clear, however much the body winds. Boards run up to 16 a side, packed edge to edge with interlocking rope.PROVEN PAR ON EVERY BOARDThe part most generators skip.- Breadth-first search over a canonical state space returns the TRUE minimum move count — not the generator's own construction path, not an estimate.- Ask for a 40-move puzzle and get a 40-move puzzle: Klotski boards are engineered BACKWARDS from the solved position to the depth you asked for, then re-verified forwards by the solver.- Difficulty rated 1–5 stars, banded on that proven par (or on chain depth in the Clear modes).- Shortest solutions are counted, and a board is only ever called unique when the count actually finished — a truncated lower bound is not a proof, and it's never treated as one.NO DEAD ENDS, EVERThe Clear modes' guarantee, and it's structural.- Boards are built from a witness removal order, so solvability isn't tested — it's constructed.- Removing a block can only unblock others, never block them. So no sequence of legal taps can strand the player. That's proven once for the whole mode, not hoped for per board.- Your players cannot soft-lock themselves. Neither can your level designers.PRESSURE PLATESOptional checkpoints turn a race into a logistics problem.- The hero reaching its goal is no longer enough: every plate must be held down by SOME block at that moment.- The solver treats it as one conjoined win condition — so a non-hero block settling the last plate can be the winning move, and the par accounts for it.- Plates are placed away from the hero's start and its escape lane, and verified coverable.X-RAY EVERY BOARD- A drawn board preview: blocks, the hero, the exit notch or target outline, obstacles, checkpoint pads.- A SOLUTION SCRUBBER — drag a slider and watch the board play its own solution move by move, with the moved block highlighted. The fastest way to tell a satisfying shuffle from a straight line.- 3D boards add an orbitable preview and a layer-by-layer slice view.- Facts, design notes, warnings, and an honest generation report — when constraints can't be met it says so instead of quietly shipping an easier board.GENERATE YOUR WAY- One no-code window drives all five modes: nineteen presets, Auto-tune, a 0–5 star target-difficulty slider that snaps the move window, and guardrails that warn about impossible combinations before you click.- Batch generation runs on a background thread — the editor stays responsive, and Cancel works mid-batch.- Save single puzzles or full packs as assets; Verify and Re-roll saved boards straight from the inspector.- Reproduce any board from a short seed — share the seed, not the data.- Or generate at runtime from code: endless and daily modes in a few lines.PLAY IT RIGHT AWAY- A complete demo: landing menu with all five modes, curated packs or endless boards, a HUD with live counters, moves-vs-par, difficulty pips and the controls for whatever you're playing.- Drag blocks to slide them, click blocks to clear them, orbit and pan the 3D structures.- UNDO, one-move HINTS, and a step-by-step auto-solver that always lands exactly on par.- Synthesized sound, no audio files. Renders in Built-in, URP and HDRP with no material conversion.- Skin it by dropping prefabs into two slots, or supply three arrow sprites — leave them empty and the glyphs are generated for you.DROP IT INTO YOUR GAME- The core has no dependencies. The rules are one call: ask the solver how far a block may slide, and you have the movement law.- A ready-made referee (load / slide / tap / undo / hint / auto-solve + events) if you want it; raw board data if you don't.- Built for puzzle games, escape-room block rooms, dungeon sokoban-adjacent rooms, minigames inside bigger games, or a pure mobile puzzle app.INCLUDES- A ready-to-play demo scene (all five modes, Canvas menu + HUD)- One Generate window for every mode, with presets and a full analysis pane- Verify / Re-roll inspectors for saved puzzles and packs- Four sample puzzle assets, plus a Clear Snakes level pack- Full HTML documentation (multi-page and single-page), README, CHANGELOG- Unity 6000.3 or later- Core (generation, solving, analysis, data, ScriptableObjects): no package dependencies; works in Built-in, URP, and HDRP- Demo & editor tooling: Input System + TextMeshPro packages; the demo renders on any pipeline (primitives tinted via MaterialPropertyBlock — no material conversion)- 3 assembly definitions: SimpleKlotski (core), SimpleKlotski.Demo, SimpleKlotski.Editor- Boards: flat Clear (including Clear Snakes) 3×3 to 16×16, any shape; Gridlock and Klotski 3×3 to 8×8, where their state search already costs seconds per board; 3D lattices up to 8×8×8. Every board holds up to 63 blocks- Exact solving: breadth-first search over a canonical state space (identical blocks are interchangeable), up to 21 blocks per board — the returned move count is the true minimum, never an estimate- Move convention: one block sliding any distance in one direction = one move (the genre standard; an L-turn is two moves). The classic dense reference layout solves in 90 moves- Shortest-solution counting with an explicit completeness flag — a board is only reported unique when the count actually finished- Clear modes: dependency-graph analysis (layered peel + chain depth), with exact removal-order counting by subset DP up to 16 blocks; boards are solvable BY CONSTRUCTION and monotone (no dead ends, ever)- Clear Snakes: a rope's body follows its head through cells it already occupied, so its only blockers are whoever sits in the one-cell-wide lane ahead of the head — the same dependency graph, a different producer. Three shaping dials (rope ratio, max length as a multiple of width+height, bendiness); ratio 0 reproduces an ordinary Clear board exactly- Depth engineering: Klotski boards are built backwards from the solved position to a requested depth, then re-verified forwards by the solver- Checkpoints: pressure plates solved as one conjoined win condition (hero home AND every plate covered), so the par accounts for them- Obstacles placed by a distribution scorer that penalises clumping; Gridlock keeps the hero's escape lane clear- Difficulty rated 1–5 stars, banded on the proven par (Gridlock, Klotski) or chain depth (Clear)- Deterministic generation from a seed string; the seed and settings travel with every board- Background (threaded) batch generation in the editor with live progress and Cancel- Public API: GridlockGenerator / KlotskiGenerator / ClearGenerator / Clear3DGenerator (GenerateVerified), KlotskiBatch (batched + off-thread), SnakeShaper, KlotskiSolver + ClearSolver (full analysis), KlotskiPuzzleAsset / KlotskiPuzzlePack ScriptableObjects (IPuzzleProvider), KlotskiGame referee (IPuzzleSession)- 1 demo scene (five modes, Canvas menu + HUD), 4 sample puzzle assets + 1 sample pack- Multi-page + single-page HTML documentation, README, CHANGELOG- No third-party dependenciesCreated with AIThis package utilized Claude AI for code generation assistance and documentation drafting.However, all AI-generated content was thoroughly human-reviewed, modified, and validated over three months of intensive development. No AI-generated code or documentation was used without significant human modification and verification.All technical decisions, architecture choices, and design patterns were made by me, as the sole developer of this project. Each component was rigorously tested and painstakingly refined through both automated and manual testing procedures under my oversight.As the developer, I firmly acknowledge and attest that the completed final product represents extensive human oversight, testing, refinement, and validation.I take full responsibility for the technical integrity and overall quality of the codebase, and I affirm that the AI-generated elements were only used as a tool for assistance, not as a substitute for human expertise.




