Skip to content

gabrielhsdev/A_star_simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A* Pathfinding Algorithm with Pygame

This project is an implementation of the A* pathfinding algorithm using Python and Pygame for visualization. The A* algorithm finds the shortest path from a start point to a goal point on a grid.

Table of Contents

Features

  • A* pathfinding algorithm implementation.
  • Real-time visualization using Pygame.
  • User-defined grid size and start/goal points.
  • Separation of concerns using classes for nodes, board, and rendering.
  • Clean and modular code structure.

Getting Started

Prerequisites

Before running this program, you must install Python and Pygame on your system. If you don't have Pygame installed, you can install it using pip:

pip install pygame

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/gabrielhsdev/A_star_simple.git
  1. Navigate to the project directory:
cd your-repo-name

Usage

  1. Run the main.py script to start the A* pathfinding algorithm visualization.
python main.py
  1. Use the following controls:

    • On main.py, you can set the number of nodes, where the walls are, and start/end coordinates
    • run the main.py file to visualize the program running

Customization

You can customize the project by modifying the following:

  • Grid size and resolution.
  • Start and goal points.
  • Obstacle generation.

Contributing

Contributions are welcome! If you have any ideas for improvements or find any issues, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages