From fea00da8a3d698c58c958b6becded01083a58723 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Wed, 18 Dec 2024 22:25:08 +0100 Subject: [PATCH] add more stages to levels --- levels/01_intro/01_output.json | 12 ++++-------- levels/01_intro/05_copy_odd.json | 3 +++ levels/02_lists/count_fives.json | 3 +++ levels/02_lists/list_length.json | 3 +++ levels/02_lists/reverse_input.json | 3 +++ levels/03_text/ascii_to_lower.json | 3 +++ levels/03_text/output_decimal.json | 3 +++ levels/03_text/parse_decimal.json | 3 +++ 8 files changed, 25 insertions(+), 8 deletions(-) diff --git a/levels/01_intro/01_output.json b/levels/01_intro/01_output.json index 646a4e9..8a51782 100644 --- a/levels/01_intro/01_output.json +++ b/levels/01_intro/01_output.json @@ -4,12 +4,8 @@ "name": "Zero", "description": "learn how to output data", "init_board": "\n o \n\n I\n\n", - "stages": [ - { - "input": [], - "output": [ - 0 - ] - } - ] + "stages": [{ + "input": [], + "output": [0] + }] } \ No newline at end of file diff --git a/levels/01_intro/05_copy_odd.json b/levels/01_intro/05_copy_odd.json index 26d25d9..f57e8c6 100644 --- a/levels/01_intro/05_copy_odd.json +++ b/levels/01_intro/05_copy_odd.json @@ -4,6 +4,9 @@ "name": "Odd Cat", "description": "copy only the odd numbers from the input", "stages": [{ + "input": [1, 2, 3, 4, 5, 6, 7], + "output": [1, 3, 5, 7] + },{ "input": [112, 92, 51, 79, 112, 96, 84, 59, 195, 208, 137, 196, 68, 204, 82, 148, 251, 56, 105, 38, 63, 204, 240, 220, 180, 54, 211, 17, 82, 17, 181, 43], "output": [51, 79, 59, 195, 137, 251, 105, 63, 211, 17, 17, 181, 43] }] diff --git a/levels/02_lists/count_fives.json b/levels/02_lists/count_fives.json index 8a9549f..395177f 100644 --- a/levels/02_lists/count_fives.json +++ b/levels/02_lists/count_fives.json @@ -4,6 +4,9 @@ "name": "Fives", "description": "count how many fives are in the input", "stages": [{ + "input": [6, 5, 5, 3, 5, 0], + "output": [3] + },{ "input": [182, 236, 71, 5, 5, 242, 29, 99, 19, 230, 217, 5, 67, 5, 223, 224, 70, 243, 3, 74, 242, 5, 171, 31, 96, 5, 169, 70, 5, 163, 72, 5, 172, 148, 5, 208, 28, 220, 17, 184, 172, 238, 5, 105, 119, 5, 106, 100, 73, 53, 42, 221, 155, 5, 74, 100, 161, 36, 16, 239, 193, 164, 64, 162, 222, 155, 107, 14, 45, 52, 159, 31, 199, 124, 129, 0], "output": [12] }] diff --git a/levels/02_lists/list_length.json b/levels/02_lists/list_length.json index 3a6d8b8..c254b2b 100644 --- a/levels/02_lists/list_length.json +++ b/levels/02_lists/list_length.json @@ -4,6 +4,9 @@ "name": "Length", "description": "count how many numbers are in the input, until the first zero", "stages": [{ + "input": [1, 87, 9, 0], + "output": [3] + },{ "input": [182, 236, 71, 5, 5, 242, 29, 99, 19, 230, 217, 5, 67, 5, 223, 224, 70, 243, 3, 74, 242, 5, 171, 31, 96, 5, 169, 70, 5, 163, 72, 5, 172, 148, 5, 208, 28, 220, 17, 184, 172, 0], "output": [41] }] diff --git a/levels/02_lists/reverse_input.json b/levels/02_lists/reverse_input.json index 91ad03d..9b6eb1e 100644 --- a/levels/02_lists/reverse_input.json +++ b/levels/02_lists/reverse_input.json @@ -4,6 +4,9 @@ "name": "Reverse", "description": "read input until zero and output the same thing in reverse", "stages": [{ + "input": "woem\u0000", + "output": "meow" + },{ "input": "tnropmi yrev\u0000", "output": "very impornt" }] diff --git a/levels/03_text/ascii_to_lower.json b/levels/03_text/ascii_to_lower.json index 5c19e65..401de96 100644 --- a/levels/03_text/ascii_to_lower.json +++ b/levels/03_text/ascii_to_lower.json @@ -4,6 +4,9 @@ "name": "Lowercase", "description": "Convert text to lowercase", "stages": [{ + "input": "FROM THE MOMENT I UNDERSTOOD THE WEAKNESS OF MY FLESH, IT DISGUSTED ME", + "output": "from the moment i understood the weakness of my flesh, it disgusted me" + },{ "input": "I CraVeD tHE strEnGTH AND CerTAinTy oF STeeL", "output": "i craved the strength and certainty of steel" }] diff --git a/levels/03_text/output_decimal.json b/levels/03_text/output_decimal.json index fcc388e..6cc2f5d 100644 --- a/levels/03_text/output_decimal.json +++ b/levels/03_text/output_decimal.json @@ -4,6 +4,9 @@ "name": "Numbers", "description": "Convert input numbers to text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on", "stages": [{ + "input": [8, 7, 1], + "output": "8 7 1" + },{ "input": [85, 114, 32, 103, 97, 121, 58, 51], "output": "85 114 32 103 97 121 58 51" }] diff --git a/levels/03_text/parse_decimal.json b/levels/03_text/parse_decimal.json index ece2bef..fea5a42 100644 --- a/levels/03_text/parse_decimal.json +++ b/levels/03_text/parse_decimal.json @@ -4,6 +4,9 @@ "name": "Numbers 2", "description": "Convert input numbers from text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on", "stages": [{ + "input": "1 2 3", + "output": [1, 2, 3] + },{ "input": "85 114 32 103 97 121 58 51", "output": [85, 114, 32, 103, 97, 121, 58, 51] }]