An open API service indexing awesome lists of open source software.

https://github.com/adamslevy/rush_hour_solver

A rush hour board representation and a breadth first search solver.
https://github.com/adamslevy/rush_hour_solver

Last synced: about 2 months ago
JSON representation

A rush hour board representation and a breadth first search solver.

Awesome Lists containing this project

README

        

# Rush Hour Solver

Board.cpp and Board.h define a Rush Hour board class.
BoardQ.cpp and BoardQ.h define a Queue of Rush Hour boards. This is used by the bread first search.
bfs.cpp defines a breadth first search which exhausts all possibilities and prints out the shortest solution.

## To run
Run make. Run rush_hour_solver.
The program will solve the hardest known sudoku board and print out the steps. It takes about a minute to solve. The full solution is printed before the program exits.