Now the rooms are better at having good doors.
This commit is contained in:
parent
908f5bfb3e
commit
8e2a691337
8 changed files with 69 additions and 70 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue