isNeighborOf method

bool isNeighborOf(
  1. Hex other
)

Implementation

bool isNeighborOf(Hex other) {
  return distanceTo(other) == 1;
}