#include #include #include #include "matrix.hpp" #include "rand.hpp" #include "constants.hpp" #include "maze.hpp" using std::string; using matrix::Matrix; TEST_CASE("hunt-and-kill", "[maze-gen]") { auto map = matrix::make(21, 21); std::vector rooms; std::vector dead_ends; maze::hunt_and_kill(map, rooms, dead_ends); matrix::dump("MAZE?", map); for(auto& room : rooms) { fmt::println("room: {},{}; {},{}", room.x, room.y, room.width, room.height); } }