Did a full code review to identify things to fix and either fixed them or noted BUG where I should come back.

This commit is contained in:
Zed A. Shaw 2024-12-04 21:43:59 -05:00
parent ae43dad499
commit 9abb39a3bf
14 changed files with 72 additions and 35 deletions

View file

@ -13,7 +13,6 @@ TEST_CASE("bsp algo test", "[builder]") {
Map map(20, 20);
WorldBuilder builder(map);
builder.generate();
REQUIRE(map.$rooms.size() >= 2);
}
TEST_CASE("dumping and debugging", "[builder]") {
@ -21,8 +20,6 @@ TEST_CASE("dumping and debugging", "[builder]") {
WorldBuilder builder(map);
builder.generate();
REQUIRE(map.$rooms.size() >= 2);
dump_map("GENERATED", map.paths());
map.dump();
}
@ -31,7 +28,6 @@ TEST_CASE("pathing", "[builder]") {
Map map(20, 20);
WorldBuilder builder(map);
builder.generate();
REQUIRE(map.$rooms.size() >= 2);
REQUIRE(map.can_move({0,0}) == false);
REQUIRE(map.iswall(0,0) == true);