3 ms·
Yeah right, in that case there's something wrong there! Maybe in the way it queues up the options.
by _0ffh 4y ago
Yeah right, in that case there's something wrong there! Maybe in the way it queues up the options.
- squeaky-clean 4y agoThink I found it, if you change the sort in astar.ts to just return 1 or -1 based on the comparison it behaves like A-star. untraversedTiles.sort((a, b) => { if (heuristicCost[a.row][a.col] < heuristicCost[b.row][b.col]) { return-1; } return 1; });