Skip to content

Conversation

@superstes
Copy link
Contributor

@superstes superstes commented Aug 17, 2025

Greetings!

First of all - thank you for developing and distributing such an useful module. I really appreciate it 👍

I wanted to contribute an example of how to use it with weighted grid-nodes so users can play with it (:

Input map

An opensimplex-noise map:

image

Example run

python3 image_pathfinding.py
> Parsing map..
> Finding optimal path..
> iterations: 1_064_413 path length: 1_899
> Saving image..
image

Allowing for diagonal movement

python3 image_pathfinding.py -d
image

With some weight-randomization

python3 image_pathfinding.py -r 1
image

@brean
Copy link
Owner

brean commented Aug 17, 2025

Awesome! I love it!

@brean brean merged commit b01ec9a into brean:main Aug 17, 2025
@superstes
Copy link
Contributor Author

Nice - thank you (:

@superstes superstes deleted the feat-example-image-weighted branch August 18, 2025 07:33
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.

2 participants