Now the rooms are better at having good doors.

This commit is contained in:
Zed A. Shaw 2026-03-15 03:20:29 -04:00
parent 908f5bfb3e
commit 8e2a691337
8 changed files with 69 additions and 70 deletions

View file

@ -10,6 +10,7 @@
#include <thread>
#include "algos/rand.hpp"
#include "game/systems.hpp"
#include "constants.hpp"
using namespace fmt;
using namespace nlohmann;
@ -63,7 +64,9 @@ TEST_CASE("dijkstra algo test", "[pathing-old]") {
pathing.$input = test["input"];
REQUIRE(pathing.INVARIANT());
pathing.compute_paths(walls);
int longest = pathing.compute_paths(walls);
REQUIRE(longest > 0);
REQUIRE(longest < WALL_PATH_LIMIT);
REQUIRE(pathing.INVARIANT());