Skip to content

new example: reachable hexes#125

Open
szikoramarci wants to merge 9 commits intoflauwekeul:masterfrom
szikoramarci:reachable
Open

new example: reachable hexes#125
szikoramarci wants to merge 9 commits intoflauwekeul:masterfrom
szikoramarci:reachable

Conversation

@szikoramarci
Copy link

It is adding an example that showcases a new way of traversing hexes.

Starting from a coordinate, we'll get all reachable hexes we can reach in a certain step distance, avoiding obstacle hexes.

Why is it NOT the lightOfSight feature? Because we can reach a hex behind obstacles. We can reach if we have enough step points and the path from the start to the goal hex contains less or equal steps.

You can use this feature for example in games when you need to know how far a player can move ahead if there are traps, walls and, other creatures.

@szikoramarci szikoramarci marked this pull request as ready for review October 26, 2024 16:10
@szikoramarci szikoramarci changed the title New example: reachable hexes new example: reachable hexes Oct 26, 2024
@szikoramarci
Copy link
Author

Maybe the commits are messy. I hope it is not a problem. I can resolve that and get a cleaner commit history of that, but I guess before merging the GitHug can squash it automatically and use that description and title as the commit message and description, right?

Let me know if you see something I need to change, though.

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.

1 participant