项目作者: nayaknishant

项目描述 :
We explore the speed and optimality of algorithms to solve the sliding-puzzle game. We compare A*, BFS, greedy best-first search, and a custom human-based algorithm.
高级语言: Python
项目地址: git://github.com/nayaknishant/sliding-puzzle-solver.git
创建时间: 2021-07-27T03:00:37Z
项目社区:https://github.com/nayaknishant/sliding-puzzle-solver

开源协议:

下载


Sliding-block puzzle solver

We explore the speed and optimality of algorithms to solve the sliding-puzzle game. We compare A, BFS, greedy best-first search, and a custom human-based algorithm. In the 24-puzzle game, finding the optimal solution using BFS is infeasible, finding the optimal solution using A can take hours or days, but finding a sub-optimal solution using our human-based algorithm takes a few seconds or minutes.

To run our human-based algorithm, clone or download the repo and run:

  1. python solver.py

To run the A* search algorithm run:

  1. python solver.py --astar