Skip to content

Henry-Ta/Pathfinding.Python

Repository files navigation

Pathfinding

forthebadge made-with-python

Table of contents

General info

Pathfinding is a grid based project that visualize paths of searching algorithms, written in pygame.

Installation

Requires python and pygame installed locally.

To run this project, open cmd (Windows)/ terminal (Linux) and run:

$ cd "directory of project"
$ python Main.py

Usage

  • Left Mouse / W Key: to place a Wall grid

  • Right Mouse / D Key: to place End Marker

  • Middle Mouse / L Key : to place Start Marker

    • Q Key to place Weighted Wall
    • A Key to toggle full path of arrows
    • E Key to toggle explored area
    • M Key to animate the path
    • P Key to print out the wall list ( in case, users want to save their own maps to reuse after closing )
    • Esc Key to exit

Screenshots

Home

Straight Path

Diagonal Path

Features

Implements path finding algorithms:

  • BFS
  • DFS
  • Greedy B*
  • A* Euclidean
  • A* Manhattan
  • A* Diagonal
  • Dijkstra

Status

Generic badge No Maintenance Intended

License

Contact

Created by Henry Ta

About

Pathfinding Pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages