hexruudukot
Hexruudukot, commonly referred to as hex grids, are tilings of the plane by regular hexagons arranged so that every cell has six neighbors. This honeycomb pattern provides six-directional movement and compact, isotropic spacing, making hex grids popular for modeling space in board games, digital games, geographic information systems, and robotics.
There are two common hex orientations: pointy-topped, where a vertex points upward, and flat-topped, where a
Several coordinate systems are used to index hex cells. Axial coordinates use two axes (q, r) that
Distance between hexes can be computed in cube coordinates as max(|dx|, |dy|, |dz|). In axial coordinates, distance
Applications include strategy and role-playing games, terrain mapping, and procedural generation. Implementations typically store grid data