+3
-3
@@ -206,5 +206,5 @@ // Generated code -- http://www.redblobgames.com/grids/hexagons/ | ||
| function indexOfHex(hexes, hex) { | ||
| function index_of_hex(hexes, hex) { | ||
| return hexes.reduce(function(cur, val, index) { | ||
| return cur === -1 && val.q === hex.q && val.r === hex.r && val.s === hex.s ? index : cur; | ||
| return cur === -1 && val.q === hex.q && val.r === hex.r ? index : cur; | ||
| }, -1); | ||
@@ -214,3 +214,3 @@ } | ||
| function neighbors(hex1, hex2) { | ||
| return indexOfHex(hex_ring(hex1, 1), hex2) > -1; | ||
| return index_of_hex(hex_ring(hex1, 1), hex2) > -1; | ||
| } | ||
@@ -217,0 +217,0 @@ |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "", | ||
| "version": "0.1.8", | ||
| "version": "0.1.9", | ||
| "license": "MIT", | ||
@@ -8,0 +8,0 @@ "homepage": "http://www.redblobgames.com/grids/hexagons/", |
12129
-0.12%