summaryrefslogtreecommitdiff
path: root/wk1/pset1
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-03 10:15:12 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2023-12-03 10:15:12 +0000
commitf97d30725d7efc18864e935a933ae166619376e9 (patch)
tree47e8d4303dc3308b2bf81c822aad5b237ba6aad6 /wk1/pset1
parent36868e6ae9372e6e6dbf65cb5bb5f7f3aec041b4 (diff)
Sun, Dec 3, 2023, 2:15 AM -08:00
Diffstat (limited to 'wk1/pset1')
-rw-r--r--wk1/pset1/mario-more/mario.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/wk1/pset1/mario-more/mario.c b/wk1/pset1/mario-more/mario.c
index b4fa540..60c0937 100644
--- a/wk1/pset1/mario-more/mario.c
+++ b/wk1/pset1/mario-more/mario.c
@@ -27,23 +27,36 @@ void print_grid(size)
{
for (int i = 0; i < size; i++)
{
+ for (int x = 0; x < 2; x++)
+ {
for (int j = 0; j < size; j++)
{
- if ((size - (j + i)) > 1)
+ if (x == 0)
{
- printf(" ");
- } else {
- printf("#");
+ if ((size - (j + i)) > 1)
+ {
+ printf(" ");
+ }
+ else
+ {
+ printf("#");
+ }
}
-
- /*if ((size - (j + i)) < 1)
+ else
{
- printf(" ");
- } else {
- printf("#");
- }*/
+ if ((size - (j + i)) > 1)
+ {
+ printf(" ");
+ }
+ else
+ {
+ printf("#");
+ }
+ }
}
printf(" ");
+ }
+ printf("\n");
}
}