Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a star #497

Merged
merged 1 commit into from
Feb 28, 2025
Merged

added a star #497

merged 1 commit into from
Feb 28, 2025

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

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