add intro level for comparator
This commit is contained in:
parent
01203d9034
commit
ce2e7c252a
1 changed files with 21 additions and 1 deletions
|
@ -49,6 +49,7 @@
|
||||||
"id": "increment_input",
|
"id": "increment_input",
|
||||||
"name": "Incrementer",
|
"name": "Incrementer",
|
||||||
"description": "Add one to each input number",
|
"description": "Add one to each input number",
|
||||||
|
"init_board": " \n o \n 5 \n \n *+ \n M2 \n \n \n \n",
|
||||||
"stages": [{
|
"stages": [{
|
||||||
"input": [93, 47, 71],
|
"input": [93, 47, 71],
|
||||||
"output": [94, 48, 72]
|
"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]
|
"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",
|
"id": "copy_odd",
|
||||||
"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],
|
"input": [1, 2, 3, 4, 5, 6, 7],
|
||||||
"output": [1, 3, 5, 7]
|
"output": [1, 3, 5, 7]
|
||||||
|
|
Loading…
Reference in a new issue