Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 939 Bytes

File metadata and controls

25 lines (17 loc) · 939 Bytes

RushHour

Automatic resolution of the RushHour-like games

Usage

After building the solver, launch it with the filename of the puzzle to solve as a parameter : ./rushhour ./data/rushhour1.txt

File format

The first line must be [width],[height] Then on the [height] following lines, there should be [width] char to describe the map

The border are annoted with an x, the exit with a z The main car must be annoted with an a, all the other must use a letter between b and f

The solver has been tested with a 8x8 grid. It should tell you when all the possibilities have been tested if no solutions were found. Once the solution has been found (if a solution is available) press Enter to see the step to reproduce to solve the puzzle.

Had the idea of this solver while playing move the block

Now I can solve all the puzzles :D