Sliding Tile Puzzle

Sliding Tile Puzzle

Slide a number into the neighboring blank and restore ascending order. The sample is a small original, reproducible board.

1. Set up a board

The same size, step count and seed reproduce the same board. Scramble count is not a difficulty score.

2. Slide tiles

Click or tap a numbered tile. Keyboard: Tab to a tile, Enter/Space to move; arrow keys shift focus or slide into the blank.

3×3 boardYour moves: 0In progress

Original 3×3 example ready. Only tiles beside the blank may move.

Hint search is capped at 120,000 nodes, 300 ms and 80 moves. A limit result is not proof that no solution exists.

3. Move record

Only your moves are listed here. Reset clears them; undo removes the last move.

No moves yet.

The board, seed, moves and hint search stay in your browser tab. JSON is downloaded only when you request it; no puzzle input is submitted to a server.

Comments & questions

Sliding Tile Puzzle

The empty square is the only space a tile may enter. This browser puzzle starts from an ordered board and scrambles it through legal slides, so every generated board is reachable. The optional hint searches for a shortest solution using Manhattan-distance IDA* within a strict node, time and depth budget; if that budget runs out, the answer remains unknown rather than being labeled impossible.

Key features

  • Reproducible seeded 3×3, 4×4 or 5×5 boards generated only by legal adjacent slides
  • Strict one-tile adjacency validation, goal detection, undo and reset
  • Keyboard or touch controls with a highlighted movable neighbor and explicit win state
  • Bounded optimal-path hint with honest unknown result if search limits are reached
  • Local JSON report of seed, initial/current boards and every player move

How to use

  1. Choose a grid size, scramble step count and integer seed, then create a puzzle.
  2. Click a tile bordering the blank, or focus it and press Enter; arrow keys can also slide a tile into the blank.
  3. Undo or reset moves, and request a bounded next-tile hint if you need help.
  4. Restore ascending numbers with the blank at bottom right and save the move record as JSON.

Use cases

  • Practice the classic 8-puzzle or 15-puzzle with a reproducible board
  • Share a seed so two people can start from the same reachable arrangement
  • Inspect the exact move sequence after solving a spatial puzzle

Frequently asked questions

Can a generated board be impossible?

No. Scrambling begins at the solved board and applies only legal neighboring moves. Even-width parity is checked by the model as well.

Are hints always available?

No. The shortest-path search stops at 120,000 nodes, 300 ms or 80 moves. When a bound is reached it reports an unfinished search, not that the board is unsolvable.

Does the scramble count measure difficulty?

No. It counts legal mixing moves, not a proven minimum distance or human difficulty. A rare return to the solved state adds one legal move.

How does the keyboard work?

Focus any numbered tile and press Enter or Space to try to move it. Arrow keys move focus; if the arrow points into the blank, that tile slides.

Does JSON save a solution?

No. It records the exact generated and current board plus your moves; hints are calculated locally on request and are not included.

Privacy

The board, seed, moves and hint search stay in your browser tab. JSON is downloaded only when you request it; no puzzle input is submitted to a server.

Related Tools

Nonogram StudioSudoku StudioNumber Memory PracticeKakuro StudioFunction Graph WorkbenchAudio ABX Blind TestCard Sort StudyEvent Run of ShowChecklist RunnerKanban Project BoardMind Map WorkbenchArgument Map EditorTeam Skill MatrixCorpus ConcordancerTerminology Glossary ManagerCloze Worksheet MakerReversi BoardMinesweeper LabTangram StudioCrossword BuilderWord Ladder GameWord Search StudioAnagram Word GameConnect Four BoardAttribute Trio PuzzleMaze WorkbenchNumber Merge GameLogic Grid Puzzle MakerLights Out PuzzlePeg Solitaire BoardArithmetic Cage PuzzleChess Tactics BoardProjectile Motion LabGeometry Construction LabEtymology Map ExplorerPronunciation Comparison StudioReading PacerPhonetic Transcription LabProbability Experiment LabPeriodic Trend LabAlgebra Balance LabPhonics Word BuilderSpaced Repetition CardsService Blueprint DesignerOrganization Chart EditorProject Risk RegisterHabit Progress TrackerProcess Swimlane DesignerResource Capacity SchedulerInventory Movement LedgerRanked Ballot CounterUsability Task RunnerRequirements TraceabilitySentence Structure LabTranslation Memory WorkbenchDictation PracticeFraction ManipulativesMolecule Structure ViewerGantt Dependency PlannerWeighted Decision MatrixRound Robin SchedulerMental age test · everyday attitude themesPast-life story test27-question Enneagram explorerKorean initials quizFocus Games · Numbers and Ink ColorsColor vision reference platesPitch Recognition PracticeMoving Target RecognitionScoreboardBingo Card GeneratorTruth or DareQuote of the DayPreference Tournament MakerRock Paper ScissorsRandom Seating PlanRandom Nickname GeneratorRandom Conversation QuestionsMouse TestTouchscreen TestMonitor TestRefresh Rate EstimateScreen and Display InformationKorean Business Number CheckLotto GeneratorLadder GameCompatibility CheckerRandom GeneratorPassword GeneratorMy IP AddressLunch PickerSpin the WheelMetronomeReaction Time TestBalance Game (Would You Rather)Personality Type TestDream DictionaryKeyboard Test
Explore all Life/Fun tools →Image/Media →Text/Convert →Dev Tools →