hex-world
    Preparing search index...

    Function offsetNeighbor

    • Returns the offset {col, row} of the neighbour of (col, row) in the given direction (0–5).

      Parameters

      • col: number
      • row: number
      • direction: number

      Returns { col: number; row: number }