Sliding Puzzle Solver

Sliding Puzzle

Puzzle Configuration

Customize Image

Solution Statistics

How It Works

1. Customize Your Puzzle

Set your puzzle dimensions, choose a custom image, and configure the start and goal states of your sliding puzzle.

2. Solve It Yourself

Challenge yourself by trying to solve the puzzle manually - click or tap tiles to slide them into position.

3. Use Algorithmic Solving

Let our advanced algorithms find the optimal solution path for you. Choose from multiple solving methods.

Frequently Asked Questions

What is a sliding puzzle?

A sliding puzzle is a combination puzzle that challenges you to slide pieces along certain routes to establish a certain end-configuration.

What algorithms does this solver use?

Our solver implements several algorithms including A*, IDA*, BFS, and strategic pattern-based solving methods.

How do I control the puzzle states?

The puzzle has two main states you can customize:

Edit Start: This button lets you customize the starting configuration of the puzzle by freely dragging and rearranging tiles.

Edit Goal: This button allows you to define a custom goal state that the puzzle should be solved to, rather than using the default ordered configuration.

Solve Myself: Once you've set up your puzzle, click this button to try solving it manually by sliding tiles according to puzzle rules.

Note: The puzzle automatically checks if your start and goal states are solvable. If not, it will offer to fix the puzzle by swapping two adjacent non-blank tiles.

Can I use my own images?

Yes! You can upload your own image or provide a URL to create a custom sliding puzzle.

About This Project

The Sliding Puzzle Solver is an interactive web application that allows users to create, play with, and automatically solve sliding puzzles of various dimensions. It was developed to demonstrate algorithms and problem-solving techniques in a fun, interactive way.

This project showcases multiple path-finding algorithms and offers a customizable experience for puzzle enthusiasts.