forked from iautom8things/A-Star-Pathfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (23 loc) · 964 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Site : https://github.com/mazubieta/A-Star-Pathfinder
This is a demonstration tool using Python 2.6 and PyGame for the A* Pathfinding Algorithm.
After properly installing Python 2.6 and PyGame, to execute this demo:
$ python path.py
How to use it:
Cell Placement:
Place/Remove Start square - CTRL + LEFT_CLICK
Place/Remove Goal square - CTRL + RIGHT_CLICK
Place/Remove a Wall square - SHIFT + LEFT_CLICK
Note: You can hold this down and move the cursor to place several
walls at a time
Reset Board:
Clear the entire board - ESCAPE
Soft clear board - BACKSPACE
Note: Leaves Start, Goal and Wall squares
Find Optimal Path:
Verbose Mode - ENTER
Instant - RIGHT_ARROW
Step Through Path - N
Change Heuristics:
"Straight Line Distance" - SHIFT + 1
"Manhattan Distance" - SHIFT + 2
"Zero" (Nothing Known) - SHIFT + 3