93 lines
No EOL
2.4 KiB
JSON
93 lines
No EOL
2.4 KiB
JSON
{
|
|
"title": "1. Introduction",
|
|
"levels": [
|
|
{
|
|
"id": "output",
|
|
"name": "Zero",
|
|
"description": "learn how to output data",
|
|
"init_board": "\n o \n\n I\n\n",
|
|
"stages": [{
|
|
"input": [],
|
|
"output": [0]
|
|
}]
|
|
},
|
|
{
|
|
"id": "digits",
|
|
"name": "Digits",
|
|
"description": "place digits and use number keys to assign them values",
|
|
"stages": [{
|
|
"input": [],
|
|
"output": [4, 8, 16]
|
|
}]
|
|
},
|
|
{
|
|
"id": "loop",
|
|
"name": "Loop",
|
|
"description": "repeated output",
|
|
"init_board": "\n \n o\n\n\n\n ^ \n\n",
|
|
"stages": [{
|
|
"input": [],
|
|
"output": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
}]
|
|
},
|
|
{
|
|
"id": "copy_input",
|
|
"name": "Copy Cat",
|
|
"description": "read input and output the same thing",
|
|
"stages": [{
|
|
"input": "Hello, world!",
|
|
"output": "Hello, world!"
|
|
},{
|
|
"input": "Meow!",
|
|
"output": "Meow!"
|
|
},{
|
|
"input": "there really isn't much point to more than 2 stages, but here we are",
|
|
"output": "there really isn't much point to more than 2 stages, but here we are"
|
|
}]
|
|
},
|
|
{
|
|
"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]
|
|
},{
|
|
"input": [44, 127, 130, 211, 153, 156, 36, 196, 236, 236, 23, 56, 103, 205, 12, 49, 6, 41, 130, 59, 38, 11, 23, 212],
|
|
"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",
|
|
"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]
|
|
}]
|
|
}
|
|
]
|
|
} |