Skip to content

Commit

Permalink
fixed scope
Browse files Browse the repository at this point in the history
  • Loading branch information
nawagers committed Nov 5, 2024
1 parent da5870d commit 82fe21c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/colsav.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ class Gamestate {
get landroutegrid() {
console.log('Computing land routing');
function isconnected(origin, dest) {
console.log(`isconnected ${typeof this}`);
function neighbors(tile) {
console.log(`neighbors ${typeof this}`);
let dir = [[-1, -1], [-1, 0], [-1, 1], [0, -1], [0, 1], [1, -1], [1, 0], [1, 1]];
let tile_neighbors = []
dir.forEach(([row, col]) => {
Expand Down

0 comments on commit 82fe21c

Please sign in to comment.