This commit is contained in:
Eric Mertens 2022-11-04 21:35:28 -07:00
parent 02a6d7ae31
commit b7527106ba

View File

@ -15,14 +15,14 @@ auto Draw(std::ostream & out, std::map<Coord, ValueType> image) -> void {
for (ValueType x = minX; x <= maxX; x++) { for (ValueType x = minX; x <= maxX; x++) {
auto it = image.find({x,y}); auto it = image.find({x,y});
if (image.end() == it) { if (image.end() == it) {
out << "."; out << "";
} else switch (it->second) { } else switch (it->second) {
case 0: out << ""; break; case 0: out << ""; break;
case 1: out << ""; break; case 1: out << ""; break;
case 2: out << "2"; break; case 2: out << ""; break;
case 3: out << "3"; break; case 3: out << ""; break;
case 4: out << "4"; break; case 4: out << ""; break;
default: out << "!"; break; default: out << ""; break;
} }
} }
out << "\n"; out << "\n";