diff --git a/levels/chapter_01.json b/levels/chapter_01.json index f95a40e..4e6c18a 100644 --- a/levels/chapter_01.json +++ b/levels/chapter_01.json @@ -49,6 +49,7 @@ "id": "increment_input", "name": "Incrementer", "description": "Add one to each input number", + "init_board": " \n o \n 5 \n \n *+ \n M2 \n \n \n \n", "stages": [{ "input": [93, 47, 71], "output": [94, 48, 72] @@ -57,10 +58,29 @@ "output": [45, 128, 131, 212, 154, 157, 37, 197, 237, 237, 24, 57, 104, 206, 13, 50, 7, 42, 131, 60, 39, 12, 24, 213] }] }, + { + "id": "comparator", + "name": "Simple comparison", + "description": "The input is two numbers, output 1 if the first one is larger, otherwise output 0.", + "init_board": " \n o \n 2 \n *-L- \n 5 \n \n", + "stages": [{ + "input": [5, 8], + "output": [0] + },{ + "input": [38, 19], + "output": [1] + },{ + "input": [0, 0], + "output": [0] + },{ + "input": [124, 8], + "output": [1] + }] + }, { "id": "copy_odd", "name": "Odd Cat", - "description": "copy only the odd numbers from the input", + "description": "Copy only the odd numbers from the input", "stages": [{ "input": [1, 2, 3, 4, 5, 6, 7], "output": [1, 3, 5, 7]