Play a free sliding-vehicle puzzle: slide cars and trucks out of the way to free the blue car through the exit. Three sizes, three levels, undo and a hint.
Moves 0
Fewest possible -
Your best -
Tap a vehicle to pick it up, then tap a dotted square to slide it there, or use the two buttons under the board to slide it one cell at a time. Vehicles only slide along their own line, and can not jump over each other. One slide of any length counts as one move. With the keyboard: Enter or Space picks a vehicle up or puts it down, the arrow keys slide it along its line (when nothing is picked up they choose a vehicle), Escape puts it down, U undoes, H gives a hint. A best score only counts if you did not use the hint.
A level starts as a random packed layout with the blue car already in the exit gap. The page explores every position reachable by sliding vehicles, works out for each one the exact fewest moves to get the blue car back to the gap, and picks a position whose number is in the range for the difficulty, the highest it finds. Every move can be undone, so the position you get can always be solved.
The fewest-moves number and the hint both come from a breadth-first search from the position on the board, so the first win it finds is a shortest one. The hint is the first move of that shortest solution.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
The board is a square grid full of cars and trucks. Cars are two cells long and trucks are three. Every vehicle lies along a row or a column and can only slide along that line, forwards or backwards, as far as the cells in front of it are empty. Vehicles cannot jump over each other. Your car is the blue one with a star on its roof, and it always lies up and down. A striped marker above or below the board shows the exit gap. Slide the blue car out through the gap by clearing its way.
Tap a vehicle to pick it up. The squares it can slide to are shown with a dotted edge, and tapping one slides the vehicle there. You can also use the two buttons under the board to slide the picked up vehicle one cell at a time. One slide counts as one move however far it goes, and sliding the same vehicle on in the same direction straight away carries on the same move. The line Fewest possible shows the smallest number of moves that frees the blue car from the starting position.
Pick a size (5 x 5, 6 x 6 or 7 x 7) and a level (Easy, Medium or Hard). New level deals a fresh one, Restart puts every vehicle back, Undo takes back your last move and Hint shows one move that starts a shortest solution. The page address holds the size, level and the level number, so you can send someone the same puzzle.
Keyboard. Enter or Space picks a vehicle up or puts it down. With a vehicle picked up, the arrow keys slide it along its line. With nothing picked up, the arrow keys choose a vehicle: left and up go to the previous one, right and down to the next one. Escape puts a vehicle down, U undoes and H gives a hint. These keys only work while the focus is on the board.
Colour is never the only clue. Every vehicle other than the blue car has a colour and a roof mark (a dot, a bar, a ring, a diamond or a pair of dots), and no two vehicles share both. A colour can repeat with a different mark. Screen readers hear a description such as “Red truck with a ring, slides up and down, column 5, rows 3 to 5, can slide 2 cells up”, and after each move a sentence saying what moved.
Your best is the fewest moves you used to free the car on a board of that size and level. It only counts if you did not use the hint on that level. Undoing a move takes it off the count.
Levels are searched for, not drawn by hand. The generator places random vehicles with the blue car already in the gap, filling the board until only a set fraction of the cells is left empty. Easy boards are packed less tightly than Hard ones. Every move can be undone, so every position the vehicles can reach from that start is connected to a solved one. The generator lists those positions, up to 20,000 of them, and works out for each the fewest moves to a win with one search that starts from all winning positions at once. It picks a position whose number is in the range for the size and level, the highest it can find. If a layout has none in range it tries another, up to 30 layouts and about 80,000 positions in all, and keeps the hardest it saw. The limit is a count of positions, not a clock, so the same level number gives the same level on any device. So the ranges are targets, and Hard is the one that most often misses.
The fewest-moves number is exact. After a position is chosen, the number is confirmed by a fresh breadth-first search from it. Breadth first means the first win found is a shortest one. The hint is the first move of that shortest solution, found from where the vehicles are now.
Everything runs locally in your browser. There is no account, nothing is uploaded, and your best scores stay on your device.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.