[MUD-Dev] Re: Hex-grid mapping

quzah quzah
Tue Dec 1 22:32:32 CET 1998


From: James Wilson <jwilson at rochester.rr.com> on Tuesday, December 01, 1998 9:39
PM
Subject: [MUD-Dev] Re: Hex-grid mapping


>On Tue, 01 Dec 1998, Jon Leonard wrote:
>>On Tue, Dec 01, 1998 at 07:51:24PM -0500, James Wilson wrote:

[snip]
>>Would you have been happier if I'd drawn my hexes like this?
>>
>>        / \   / \   / \   / \
>>       /   \ /   \ /   \ /   \
>>      | 0,2 | 1,2 | 2,2 | 3,2 |
>>      |     |     |     |     |
>>     / \   / \   / \   / \   /
>>    /   \ /   \ /   \ /   \ /
>>   | 0,1 | 1,1 | 2,1 | 3,1 |
>>   |     |     |     |     |
>>  / \   / \   / \   / \   /
>> /   \ /   \ /   \ /   \ /
>>| 0,0 | 1,0 | 2,0 | 3,0 |
>>|     |     |     |     |
>> \   / \   / \   / \   /
>>  \ /   \ /   \ /   \ /
>>
>>Those are really hexagons...  And the six neighbors have the coordinate
>>deltas I specified.  The fact that they don't look pretty in ASCII graphics
>>says little about the math.

[snip]
>nevertheless there are eight neighbors of each node, not six. perhaps he
doesn't
>care about that.
>
>James


I'm not sure I follow here. Where are the extra two neighbors that only you
see? I'm seeing one neighbor nw, one ne, one east, one se, one sw and finally
one to the west. There are no north and south neighbors. Where do you get a
total of eight? Take in the above example, the hex with 1,1 in it. I'm seeing
neighbors being: [0,1],[0,2],[1,2],[2,1],[2,0] and finally, [1,0]. I'm curious
now as to the additional two hidden neighbors.

Quzah.





More information about the mud-dev-archive mailing list