Skip to content

d-wolf/python_pathfinding_astar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python A-Star (A*)

A basic A* implementation with python and jupyter notebooks using the euclidean distance.

Check the notebook to see the full example.

Sample

The starting point is green, the end is in red. Obstacles are colored blue. The resulting path between start and end is yellow.

Initial Maze

initial_maze = np.array([
    [0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 3, 0, 0, 0],
    [0, 1, 0, 3, 0, 2, 0],
    [0, 0, 0, 3, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0]
])

input

Resulting Path

output

Sources

About

A* pathfinding with python and jupyter.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages