about summary refs log tree commit diff stats
path: root/html/rogue/js/player.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/player.js')
-rw-r--r--html/rogue/js/player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/rogue/js/player.js b/html/rogue/js/player.js
index 803a6b7..e35db31 100644
--- a/html/rogue/js/player.js
+++ b/html/rogue/js/player.js
@@ -17,7 +17,7 @@ const player = {
     // Check if a hex coordinate is within grid bounds
     isValidHex(hex) {
         const halfGrid = Math.floor(HexGrid.GRID_SIZE / 2);
-        return Math.abs(hex.q) < halfGrid && Math.abs(hex.r) < halfGrid;
+        return Math.abs(hex.q) <= halfGrid && Math.abs(hex.r) <= halfGrid;
     },
 
     // Get neighbors that share an edge with the given hex