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

An example of path finding algorithm visualizer using gg module #20060

Conversation

Yuyi-hao
Copy link
Contributor

@Yuyi-hao Yuyi-hao commented Dec 1, 2023

Example: Adding A* Pathfinding Visualization

Description

This pull request adds a new example demonstrating the usage of A* pathfinding algorithm in the V language. The example uses the gg graphics library to visualize the algorithm's execution.

Changes Made

  • Added a new file aStar.v with the A* pathfinding visualization example.
  • Utilized the gg library for graphical visualization.

Why

I think because lack of actually documentation its hard to use library also other example lacks detailed comment i tried to write my code with comment on most of the part

Additional Notes

  • The example assumes the availability of the gg library, and users should install it before running the example.
  • Documentation for the gg library is still under construction, and this example serves as a practical reference for using the library in the context of A* pathfinding.

Thanks for considering this contribution!

@spytheman
Copy link
Member

Please rename the folder, so that there are no spaces in its name. You can use _ instead of them.

@spytheman spytheman marked this pull request as draft December 2, 2023 08:41
@felipensp felipensp changed the title An exmaple of path finding algorithm visualizer using gg module An example of path finding algorithm visualizer using gg module Dec 4, 2023
@spytheman
Copy link
Member

Is there any chance of this being improved?

@spytheman spytheman marked this pull request as ready for review December 28, 2023 10:50
@spytheman spytheman merged commit 680b0d4 into vlang:master Dec 28, 2023
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants