summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanner Robison <[email protected]>2026-07-16 20:22:59 -0700
committerTanner Robison <[email protected]>2026-07-16 20:22:59 -0700
commit11539724a571085ba36d04f48f713ed723ef55ca (patch)
tree6afa434b4cbb7f4979bbcc64dcd0b21b6e3e9239
parent6577467c897d79a6bd2b19ddde2dd12eaef6f228 (diff)
back to numbers
the geometry is rlly just much more noticable like this
-rwxr-xr-xabellian_sandpilebin16088 -> 16088 bytes
-rw-r--r--abellian_sandpile.c8
2 files changed, 4 insertions, 4 deletions
diff --git a/abellian_sandpile b/abellian_sandpile
index 57ddc59..f1762a4 100755
--- a/abellian_sandpile
+++ b/abellian_sandpile
Binary files differ
diff --git a/abellian_sandpile.c b/abellian_sandpile.c
index 321f53a..b432706 100644
--- a/abellian_sandpile.c
+++ b/abellian_sandpile.c
@@ -126,13 +126,13 @@ int render(int height, int width, int (*positions)[width],
if (new_positions[i][j] == 0) {
printf(" "); // Empty cell
} else if (new_positions[i][j] == 1) {
- printf(COLOR_WHITE "o"); // Cell with value 1
+ printf(COLOR_WHITE "1"); // Cell with value 1
} else if (new_positions[i][j] == 2) {
- printf(COLOR_YELLOW "0"); // Cell with value 2
+ printf(COLOR_YELLOW "2"); // Cell with value 2
} else if (new_positions[i][j] == 3) {
- printf(COLOR_ORANGE "@"); // Cell with value 3
+ printf(COLOR_ORANGE "3"); // Cell with value 3
} else if (new_positions[i][j] >= 4) {
- printf(COLOR_RED "#"); // Cell with value 4 or more
+ printf(COLOR_RED "4"); // Cell with value 4 or more
}
}
printf("\n"); // Move to the next line after each row