Global Araç
15 Puzzle
Hamleler
0
Süre
0:00
1-15'i sırayla dizmek için taşları boş alana kaydırın. Boş alana bitişik bir taşa tıklayarak kaydırın. Ortalama çözüm: 50-100 hamle;
The classic 15-puzzle: a 4×4 grid with 15 numbered tiles and one empty space. Slide tiles into the empty space to rearrange them into order 1-15 with the empty in the bottom-right. Tracks your move count and elapsed time; best stats persist in your browser. Every random board this generator produces is guaranteed solvable.
The 15-puzzle has a remarkable mathematical history. Invented around 1880, it became the world’s first viral puzzle craze in 1880-1881 thanks to a famous (apocryphal) prize of $1,000 offered by puzzle-maker Sam Loyd for solving an explicitly-impossible variant. Over the next decade mathematicians proved that only half of the 16!/2 ≈ 10.5 trillion possible arrangements are reachable from the solved state. The other half — including Loyd’s prize- puzzle — are unsolvable, no matter how cleverly you slide.
The proof uses permutation parity: each tile slide is a swap with the empty space, alternating the parity of the tile arrangement’s permutation. A solvable board must have even parity counted with the row distance of the empty cell. This generator produces guaranteed-solvable boards by starting from the solved state and applying random valid moves — a clean construction that sidesteps the parity issue entirely.
Nasıl Kullanılır
- Click any tile that's adjacent to the empty space — it slides into the empty space and the empty moves to where the tile was.
- Goal: tiles 1-15 in order across the rows, empty in the bottom-right corner.
- Move counter and timer track your performance. Best stats save automatically.
- Click 'New Game' to scramble. The shuffle is generated by random valid moves from solved, so the result is guaranteed reachable.
- Strategy tip: solve the top row first (1, 2, 3, 4), then row 2 (5, 6, 7, 8), then bottom 2 rows together. Never disturb already-solved rows.
Ne Zaman Kullanılır
- 5-15 minute focused puzzle break (typical solve takes 5-15 minutes for casual players).
- Demonstrating permutation parity in math/CS education.
- Practicing systematic problem-solving — the 15-puzzle teaches you to break a hard problem into solvable subproblems.
- Casual competitive play — race to solve the same starting board.
Ne Zaman Kullanılmaz
- When you want a long game — 15-puzzle takes 10-20 minutes typically. Pick a smaller variant (8-puzzle, 4 tiles + empty) for a quicker version.
- Multiplayer — the 15-puzzle is solo. Compete by sharing scrambles and racing.
- If you find sliding-tile puzzles frustrating — some people genuinely don't enjoy them and that's fine.
Yaygın Kullanım Senaryoları
- Pre-decision sanity-check on inputs and outputs
- Educational use — demonstrating the underlying concept
- Onboarding a colleague who needs the same calculation/conversion
- Verifying a number or output before passing it on
Sık Sorulan Sorular
Are all boards solvable?
Random shuffles aren't always solvable — only half of all 16!/2 possible arrangements are reachable from solved. We generate boards by starting solved and doing random valid moves, which guarantees solvability. If your board feels stuck, the issue is strategy, not solvability.
Why are only half of all arrangements solvable?
Permutation parity. Each tile slide is mathematically a transposition (swap of two adjacent positions). The parity of a permutation alternates with each transposition. A reachable arrangement must satisfy a parity condition involving the empty cell's row distance from its solved position. The proof is in any introductory abstract-algebra textbook under 'symmetric group'.
Sam Loyd's prize?
In 1880 American puzzle-maker Sam Loyd offered a $1,000 prize (~$30,000 in 2026 money) for solving a 15-puzzle with the 14 and 15 swapped — which mathematicians had just proven unsolvable. The prize generated huge publicity and fueled the 1880-81 viral craze, but no one ever claimed the money because no one could solve an unsolvable puzzle.
What's the most efficient solve?
Optimal solve length depends on the start state — God's number (the maximum number of moves needed to solve any 15-puzzle position) is 80. Most random scrambles solve in 30-60 moves with good strategy. Casual players use 100-200 moves, which is fine; speed-solvers using carefully memorized algorithms approach the 30-60 optimal range.
Are there bigger or smaller versions?
8-puzzle (3×3 grid, 8 tiles + empty) is a common smaller variant — easier and faster. 24-puzzle (5×5) and 35-puzzle (6×6) are larger. Beyond that, the optimal-solver complexity grows; 24-puzzle was solved by computer search in 2007 (God's number = 152). Larger versions remain open problems.
Why is the 15-puzzle considered the first viral puzzle?
Because it spread globally in early 1880 with no internet — newspapers, magazines, and street-corner discussions carried the craze. Loyd's $1,000 prize accelerated it. The 15-puzzle became the cultural reference point for 'sliding tile puzzle' in a way no earlier puzzle had achieved.