Matrix now just does the dumping but I need to make this more formal I think.

This commit is contained in:
Zed A. Shaw 2024-12-05 09:17:30 -05:00
parent eb0ca38e30
commit 56b26e1c4a
9 changed files with 44 additions and 33 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <vector>
#include <string>
typedef std::vector<int> MatrixRow;
typedef std::vector<MatrixRow> Matrix;
@ -12,3 +13,5 @@ inline void matrix_assign(Matrix &out, int new_value) {
row.assign(row.size(), new_value);
}
}
void matrix_dump(const std::string &msg, Matrix &map, int show_x=-1, int show_y=-1);