Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@that-ar-guy
Copy link
Contributor

@that-ar-guy that-ar-guy commented Feb 26, 2025

fixes: #496

Description :

This pull request introduces the A* pathfinding algorithm and its corresponding unit tests. The main changes include the implementation of the A* algorithm and the creation of a test suite to validate its functionality.

A* Algorithm Implementation:

  • Added a_star function to pysnippets/Path_Algoithms/a_star.py to implement the A* pathfinding algorithm. This function includes the heuristic function, pathfinding logic, and error handling.

Unit Tests for A* Algorithm:

  • Added TestAStar class to pysnippets/Path_Algoithms/test_a_star.py to create a test suite for the A* algorithm. This includes setup for the graph data, and tests for valid paths, no path scenarios, and cases where the start and end nodes are the same.

All three tests have passed

Mohmmed Abdul Rahman
Swoc 5

@github-actions
Copy link
Contributor

👋 Thank you for opening this pull request! We're excited to review your contribution. Please give us a moment, and we'll get back to you shortly!

Feel free to join our community on Discord to discuss more!

@that-ar-guy
Copy link
Contributor Author

@UTSAVS26 awaiting your response

@UTSAVS26 UTSAVS26 merged commit 7d663ef into UTSAVS26:main Feb 28, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Implement A (A-Star) Algorithm

2 participants