Skip to content

Commit

Permalink
refactor: add NOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Aug 4, 2023
1 parent 62b3adf commit d615943
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utility/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function isValid(point: Point) {
}

export function offsetNeighbors(point: Point): Point[] {
// NOTE: returns neighbors in clockwise order starting at 3 o'clock.
if (point.y % 2 === 0) {
return [
{ x: point.x + 1, y: point.y },
Expand Down

0 comments on commit d615943

Please sign in to comment.