Application of the A* algorithm. Used for pathfinding and string reorganisation.
Find a file
2020-08-12 13:21:55 +01:00
.vscode Final commit 2020-01-29 12:44:22 +00:00
.gitignore Replaced tile objects with a matrix 2020-05-15 20:24:55 +01:00
AStar.py Updated movement heuristic 2020-05-17 17:00:59 +01:00
AStar_multiprocessing.py Improve multiprocessing use 2020-05-17 16:40:39 +01:00
pathfinding_AStar.py Update pathfinding_AStar.py 2020-05-30 23:26:45 +01:00
README.md Update README.md 2020-08-12 13:21:55 +01:00
string_AStar.py Improve multiprocessing use 2020-05-17 16:40:39 +01:00

A-star

Application of the A* algorithm. Used for pathfinding and string reorganisation.

Requirements

  • Python 3.7 or higher
  • Pygame install using:
pip install pygame

Usage

  • You can then run the script using the terminal:
    • For the pathfinding example:
    python pathfinding_AStar.py
    
    • For the string reorganisation example:
    python string_AStar.py
    

Controls (for pathfinding example)

  • Middle click creates a navigation node.
  • Left click creates an impassable tile.
  • Enter begins the pathfinding process.