marble-machinations/levels/chapter_03.json

41 lines
No EOL
1.1 KiB
JSON

{
"title": "3. Text processing",
"levels": [
{
"id": "ascii_to_lower",
"name": "Lowercase",
"description": "Convert text to lowercase",
"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",
"output": "i craved the strength and certainty of steel"
}]
},
{
"id": "output_decimal",
"name": "Numbers",
"description": "Convert input numbers to text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
"stages": [{
"input": [8, 7, 1],
"output": "8 7 1"
},{
"input": [85, 114, 32, 103, 97, 121, 58, 51],
"output": "85 114 32 103 97 121 58 51"
}]
},
{
"id": "parse_decimal",
"name": "Numbers 2",
"description": "Convert input numbers from text, separated by spaces (32)\n'0' = 48, '1' = 49, '2' = 50, and so on",
"stages": [{
"input": "1 2 3",
"output": [1, 2, 3]
},{
"input": "85 114 32 103 97 121 58 51",
"output": [85, 114, 32, 103, 97, 121, 58, 51]
}]
}
]
}