support using strings directly as level input and output data

This commit is contained in:
Crispy 2024-12-05 14:23:21 +01:00
parent ef01de9dae
commit 36b1b8672b
9 changed files with 35 additions and 38 deletions

View file

@ -4,8 +4,6 @@
"name": "Null Separation",
"description": "output everything after the first zero in the input data",
"init_board": null,
"inputs": [199, 34, 71, 209, 4, 0, 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 103, 33, 0],
"outputs": [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 103, 33],
"input_is_text": true,
"output_is_text": true
"inputs": "9834726\u0000Hello, worlg!",
"outputs": "Hello, worlg!"
}

View file

@ -4,8 +4,6 @@
"name": "Reverse",
"description": "read input until zero and output the same thing in reverse",
"init_board": null,
"inputs": [116, 110, 114, 111, 112, 109, 105, 32, 121, 114, 101, 118, 0],
"outputs": [118, 101, 114, 121, 32, 105, 109, 112, 111, 114, 110, 116],
"input_is_text": true,
"output_is_text": true
"inputs": "tnropmi yrev\u0000",
"outputs": "very impornt"
}