summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xabellian_sandpilebin16088 -> 16088 bytes
-rw-r--r--abellian_sandpile.c6
2 files changed, 3 insertions, 3 deletions
diff --git a/abellian_sandpile b/abellian_sandpile
index e5d3591..88df3e2 100755
--- a/abellian_sandpile
+++ b/abellian_sandpile
Binary files differ
diff --git a/abellian_sandpile.c b/abellian_sandpile.c
index 004a4c7..3117b0d 100644
--- a/abellian_sandpile.c
+++ b/abellian_sandpile.c
@@ -120,11 +120,11 @@ 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 "1"); // Cell with value 1
+ printf(COLOR_WHITE "."); // Cell with value 1
} else if (new_positions[i][j] == 2) {
- printf(COLOR_YELLOW "2"); // Cell with value 2
+ printf(COLOR_YELLOW "o"); // Cell with value 2
} else if (new_positions[i][j] == 3) {
- printf(COLOR_ORANGE "3"); // Cell with value 3
+ printf(COLOR_ORANGE "0"); // Cell with value 3
} else if (new_positions[i][j] >= 4) {
printf(COLOR_RED "4"); // Cell with value 4 or more
}