#pragma once #include #include typedef std::vector MatrixRow; typedef std::vector Matrix; /* * Just a quick thing to reset a matrix to a value. */ inline void matrix_assign(Matrix &out, int new_value) { for(auto &row : out) { row.assign(row.size(), new_value); } } void matrix_dump(const std::string &msg, Matrix &map, int show_x=-1, int show_y=-1);