Refactor the Map::neighbors so that it's part of pathing where it should be.

This commit is contained in:
Zed A. Shaw 2025-02-26 13:49:25 -05:00
parent d4355a608d
commit e6c225f1c8
3 changed files with 49 additions and 45 deletions

View file

@ -25,6 +25,7 @@ public:
Matrix &paths() { return $paths; }
Matrix &input() { return $input; }
int distance(Point to) { return $paths[to.y][to.x];}
bool random_walk(Point &out, bool random, int direction);
bool INVARIANT();
};