◀ VibeCruiser

StarSlide

A free sliding puzzle game — play it in your browser, no install. 8-puzzle game solved with A* search and the Manhattan-distance (h2) heuristic. Finds the shortest move sequence from a random start. Vanilla JavaScript.

by @Emadhabibnia1385 · Emadhabibnia1385/StarSlide on GitHubLANG JavaScriptHOSTED ON STARSLIDE.EMADHABIBNIA.IRUPDATED 4 Nov 2026

Made this, @Emadhabibnia1385? See how many people played it → or use email

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

An 8-puzzle (3×3 sliding tiles) solved with A\* search and the h2 heuristic

The game starts from a random state. Slide tiles into the blank cell until you reach the goal. StarSlide finds the best (shortest) sequence of moves from the start to the goal with A\* and the h2 heuristic, then shows it and plays it back.

Random start state that is always solvable (checked by counting inversions). Play by hand by clicking tiles, with the live h2 value of the current state. Solve with A\* and see the optimal move sequence (direction the blank moves).

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

More sliding puzzle games →

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →