add more stages to levels
This commit is contained in:
parent
0d661e2d38
commit
fea00da8a3
8 changed files with 25 additions and 8 deletions
|
@ -4,12 +4,8 @@
|
||||||
"name": "Zero",
|
"name": "Zero",
|
||||||
"description": "learn how to output data",
|
"description": "learn how to output data",
|
||||||
"init_board": "\n o \n\n I\n\n",
|
"init_board": "\n o \n\n I\n\n",
|
||||||
"stages": [
|
"stages": [{
|
||||||
{
|
"input": [],
|
||||||
"input": [],
|
"output": [0]
|
||||||
"output": [
|
}]
|
||||||
0
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Odd Cat",
|
"name": "Odd Cat",
|
||||||
"description": "copy only the odd numbers from the input",
|
"description": "copy only the odd numbers from the input",
|
||||||
"stages": [{
|
"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],
|
"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]
|
"output": [51, 79, 59, 195, 137, 251, 105, 63, 211, 17, 17, 181, 43]
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Fives",
|
"name": "Fives",
|
||||||
"description": "count how many fives are in the input",
|
"description": "count how many fives are in the input",
|
||||||
"stages": [{
|
"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],
|
"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]
|
"output": [12]
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Length",
|
"name": "Length",
|
||||||
"description": "count how many numbers are in the input, until the first zero",
|
"description": "count how many numbers are in the input, until the first zero",
|
||||||
"stages": [{
|
"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],
|
"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]
|
"output": [41]
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Reverse",
|
"name": "Reverse",
|
||||||
"description": "read input until zero and output the same thing in reverse",
|
"description": "read input until zero and output the same thing in reverse",
|
||||||
"stages": [{
|
"stages": [{
|
||||||
|
"input": "woem\u0000",
|
||||||
|
"output": "meow"
|
||||||
|
},{
|
||||||
"input": "tnropmi yrev\u0000",
|
"input": "tnropmi yrev\u0000",
|
||||||
"output": "very impornt"
|
"output": "very impornt"
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Lowercase",
|
"name": "Lowercase",
|
||||||
"description": "Convert text to lowercase",
|
"description": "Convert text to lowercase",
|
||||||
"stages": [{
|
"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",
|
"input": "I CraVeD tHE strEnGTH AND CerTAinTy oF STeeL",
|
||||||
"output": "i craved the strength and certainty of steel"
|
"output": "i craved the strength and certainty of steel"
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Numbers",
|
"name": "Numbers",
|
||||||
"description": "Convert input numbers to text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
|
"description": "Convert input numbers to text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
|
||||||
"stages": [{
|
"stages": [{
|
||||||
|
"input": [8, 7, 1],
|
||||||
|
"output": "8 7 1"
|
||||||
|
},{
|
||||||
"input": [85, 114, 32, 103, 97, 121, 58, 51],
|
"input": [85, 114, 32, 103, 97, 121, 58, 51],
|
||||||
"output": "85 114 32 103 97 121 58 51"
|
"output": "85 114 32 103 97 121 58 51"
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
"name": "Numbers 2",
|
"name": "Numbers 2",
|
||||||
"description": "Convert input numbers from text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
|
"description": "Convert input numbers from text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
|
||||||
"stages": [{
|
"stages": [{
|
||||||
|
"input": "1 2 3",
|
||||||
|
"output": [1, 2, 3]
|
||||||
|
},{
|
||||||
"input": "85 114 32 103 97 121 58 51",
|
"input": "85 114 32 103 97 121 58 51",
|
||||||
"output": [85, 114, 32, 103, 97, 121, 58, 51]
|
"output": [85, 114, 32, 103, 97, 121, 58, 51]
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue