
The constraint is that q + r + s = 0 so the algorithms must preserve that. The cube coordinates are a reasonable choice for a hex grid coordinate system. We'll use this property in the neighbors section.

For example, northwest on the hex grid lies between the +s and -r, so every step northwest involves adding 1 to s and subtracting 1 from r. Each direction on the hex grid is a combination of two directions on the cube grid.Try the same for q (green) and s (purple). Try highlighting a hex with r at 0, 1, 2, 3 to see how these are related.

Each direction on the cube grid corresponds to a line on the hex grid.Selecting the hexes will highlight the cube coordinates corresponding to the three axes. Study how the cube coordinates work on the hex grid.

Shoves even columns down Cube coordinates #
