marble-machinations/levels/chapter_01.json

73 lines
1.9 KiB
JSON
Raw Normal View History

2024-12-22 16:39:40 +01:00
{
"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"
}]
},
2024-12-24 22:43:21 +01:00
{
"id": "increment_input",
"name": "Incrementer",
"description": "Add one to each input number",
"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]
}]
},
2024-12-22 16:39:40 +01:00
{
"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]
}]
}
]
}