Why am I not getting all the full ring? #93
Answered
by
flauwekeul
tansanDOTeth
asked this question in
Q&A
-
I am testing this code, and I am not sure why this isn't returning back the expected hexagons. Code:
Output:
Code:
Output:
The fourth coordinate seems out of place. I would have expected |
Beta Was this translation helpful? Give feedback.
Answered by
flauwekeul
Jan 2, 2023
Replies: 2 comments 9 replies
-
Hi,
|
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
tansanDOTeth
-
Tomorrow I have more time, I'll answer your questions then.
Op ma 2 jan. 2023 11:26 schreef tansan.eth ***@***.***>:
…
1. Ah that makes a lot of sense. Is there a way to generate a spiral
by X hexagons? Ex, I know I need X hexagons, but would like it in the shape
of a spiral. I am guessing I would probably have to generate the rectangle
first, but that would be pretty wasteful.
2. I came across that and even tried looking at the code, but it
didn't have clarify the necessity of that. Is there anything else I can
read?
3. 👍
Thank you for the reply! I appreciate the help.
—
Reply to this email directly, view it on GitHub
<#93 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMSRKJPJITRKYD7O2QQ2F3WQKUPBANCNFSM6AAAAAATOS6Y74>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
[0, 0]
are in the top left corner of the rectangle. When you traverse outside this rectangle, by default, any hexes outside are skipped.