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

https://github.com/khaledkamr/maze-solver-using-a-star

AI project written in Python Pyamaze that lets you create your own mazes and watch as they're solved in real time.
https://github.com/khaledkamr/maze-solver-using-a-star

a-star-algorithm maze-solver python python3

Last synced: over 1 year ago
JSON representation

AI project written in Python Pyamaze that lets you create your own mazes and watch as they're solved in real time.

Awesome Lists containing this project

README

          

# Maze solver (using A* algorithm)

This project aims to solve mazes using the A* algorithm. The A* algorithm is a popular pathfinding algorithm widely used in robotics and video games due to its efficiency and ability to find the shortest path between two points in a maze.

# features
- Generates random mazes of customizable dimensions using the `pyamaze` library.
- Implements the A* algorithm to find the shortest path from the start to the target cell in the maze.
- Visualizes the maze solving process using graphical representations.
- Provides metrics such as the length of the A* path to evaluate the performance of the algorithm.

# Getting Started
To use this project, make sure you have Python installed on your system. You can install the required library using pip:

`pip install pyamaze`

you can control the hight and the width of the maze from this line:
maze

# Preview

![Khaled Kamar's Video - May 9, 2024](https://github.com/khaledkamr/Maze-solver-using-A-star/assets/94804298/be28fae6-3b35-414c-8677-2fa6896f2b9b)