summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--22.10/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/22.10/main.cpp b/22.10/main.cpp
index 4124fc7..942a19e 100644
--- a/22.10/main.cpp
+++ b/22.10/main.cpp
@@ -14,6 +14,12 @@ class VM
if (cycles % 40 == 20) {
part1 += cycles * x;
}
+
+ int sx = (cycles-1) % 40;
+ int sy = (cycles-1) / 40;
+ if (abs(x - sx) <= 1) cout << "\u2588";
+ else cout << ' ';
+ if (sx == 39) cout << endl;
}
}