From 81b1adfa6fc9e3e81a5c3098739ef061849d905b Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 13 Oct 2024 17:00:59 +0200 Subject: [PATCH] add some ascii levels --- README.md | 17 ++++++++++------- levels/03_text/ascii_to_lower.json | 11 +++++++++++ levels/03_text/output_decimal.json | 11 +++++++++++ levels/03_text/parse_decimal.json | 11 +++++++++++ 4 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 levels/03_text/ascii_to_lower.json create mode 100644 levels/03_text/output_decimal.json create mode 100644 levels/03_text/parse_decimal.json diff --git a/README.md b/README.md index 14ae1f1..c7910c3 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ timestamps in solutions and blueprints multiple input/output sets undo/redo tooltips +show level info in editor lock tile types for early levels to make it less overwhelming display tool variant more clearly (it's not obvious there are more states) make marble movement more consistent (`>o o<` depends on internal marble order) @@ -21,16 +22,18 @@ blueprint rotation? ``` - assets/ - levels/ - - 00_zeroes.json - - 01_cat.json - - 02_parse.json - - 99_sandbox.json + - 01_intro/ + - 01_output.json + - 02_cat.json + - 02_lists/ + - 02_parse.json + - sandbox.json - user/ - solutions/ - - 00_zeroes/ + - output/ - solution_0.json - solution_1.json - - 01_cat/ + - copy_input/ - solution_0.json - solution_3.json - blueprints @@ -41,7 +44,7 @@ blueprint rotation? `00_zeroes.json` ```json { - "id": "00_zeroes", + "id": "output", "sortorder": 5, "name": "Zeroes", "description": "learn how to output data", diff --git a/levels/03_text/ascii_to_lower.json b/levels/03_text/ascii_to_lower.json new file mode 100644 index 0000000..d011995 --- /dev/null +++ b/levels/03_text/ascii_to_lower.json @@ -0,0 +1,11 @@ +{ + "id": "ascii_to_lower", + "sort_order": 35, + "name": "Lowercase", + "description": "Convert text to lowercase", + "init_board": null, + "inputs": [73, 32, 67, 114, 97, 86, 101, 68, 32, 116, 72, 69, 32, 115, 116, 114, 69, 110, 71, 84, 72, 32, 65, 78, 68, 32, 67, 101, 114, 84, 65, 105, 110, 84, 121, 32, 111, 70, 32, 83, 84, 101, 101, 76], + "outputs": [105, 32, 99, 114, 97, 118, 101, 100, 32, 116, 104, 101, 32, 115, 116, 114, 101, 110, 103, 116, 104, 32, 97, 110, 100, 32, 99, 101, 114, 116, 97, 105, 110, 116, 121, 32, 111, 102, 32, 115, 116, 101, 101, 108], + "input_is_text": true, + "output_is_text": true +} \ No newline at end of file diff --git a/levels/03_text/output_decimal.json b/levels/03_text/output_decimal.json new file mode 100644 index 0000000..dfdb8f5 --- /dev/null +++ b/levels/03_text/output_decimal.json @@ -0,0 +1,11 @@ +{ + "id": "output_decimal", + "sort_order": 31, + "name": "Numbers", + "description": "Convert input numbers to text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on", + "init_board": null, + "inputs": [85, 114, 32, 103, 97, 121, 58, 51], + "outputs": [56, 53, 32, 49, 49, 52, 32, 51, 50, 32, 49, 48, 51, 32, 57, 55, 32, 49, 50, 49, 32, 51, 50, 32, 53, 56, 32, 53, 49], + "input_is_text": false, + "output_is_text": true +} \ No newline at end of file diff --git a/levels/03_text/parse_decimal.json b/levels/03_text/parse_decimal.json new file mode 100644 index 0000000..f63eb86 --- /dev/null +++ b/levels/03_text/parse_decimal.json @@ -0,0 +1,11 @@ +{ + "id": "parse_decimal", + "sort_order": 33, + "name": "Numbers 2", + "description": "Convert input numbers from text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on", + "init_board": null, + "inputs": [56, 53, 32, 49, 49, 52, 32, 51, 50, 32, 49, 48, 51, 32, 57, 55, 32, 49, 50, 49, 32, 51, 50, 32, 53, 56, 32, 53, 49], + "outputs": [85, 114, 32, 103, 97, 121, 58, 51], + "input_is_text": true, + "output_is_text": false +} \ No newline at end of file