ayushi-ras / beginner-contribution-

Beginners Friendly
MIT License
13 stars 63 forks source link

Create AstarAlgo.py #66

Closed keivalya closed 4 months ago

keivalya commented 1 year ago

The A algorithm is a popular pathfinding algorithm used in graph traversal and pathfinding. In this example, the maze is represented as a 2D list where 0 represents a walkable path and 1 represents a wall. The astar function takes the maze, start position, and end position as input and returns the A path from the start to the end position. The Node class is used to represent nodes in the search space.