From 36868e6ae9372e6e6dbf65cb5bb5f7f3aec041b4 Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Sun, 3 Dec 2023 10:08:21 +0000
Subject: Sun, Dec 3, 2023, 2:08 AM -08:00

---
 wk1/pset1/mario-more/mario.c | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

(limited to 'wk1')

diff --git a/wk1/pset1/mario-more/mario.c b/wk1/pset1/mario-more/mario.c
index 4c15e38..b4fa540 100644
--- a/wk1/pset1/mario-more/mario.c
+++ b/wk1/pset1/mario-more/mario.c
@@ -27,16 +27,23 @@ void print_grid(size)
 {
     for (int i = 0; i < size; i++)
     {
-        for (int j = 0; j < size; j++)
-        {
-            if ((size - j) == 1)
+            for (int j = 0; j < size; j++)
             {
-                printf(" ");
-            } else {
-                printf("#");
+                if ((size - (j + i)) > 1)
+                {
+                    printf(" ");
+                } else {
+                    printf("#");
+                }
+
+                /*if ((size - (j + i)) < 1)
+                {
+                    printf(" ");
+                } else {
+                    printf("#");
+                }*/
             }
-        }
-        printf("\n");
+            printf("  ");
     }
 }
 
-- 
cgit v1.2.3