Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Known issues/2.0.16
(section)
From Turing Complete
Views
Read
Edit
Edit source
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Level fails due to wrong test.si === Edit <code>Turing Complete\campaign\symphony_9_aliases\test.si</code> and replace the it all with <pre>def get_input($scratch_space: [Int], tick: Int, $inputs: [Int]) { inputs[0] = 10 } def check_output($scratch_space: [Int], tick: Int, inputs: [Int], outputs: [Int]) TestResult { switch tick 0 { if get_register_value(1) != 10 { set_error(`The first instruction is supposed to move the input value (10) to r1.`) return fail } } 1 { if get_register_value(2) != 10 { set_error(`The first instruction is supposed to move the input value (10) to r2.`) return fail } } 2 { if get_register_value(3) != 65526 { set_error(`Negate r2 and store the result (65526) in r3.`) return fail } } 3 { if get_register_value(4) != 65525 { set_error(`NOT r2 and store the result (-9) in r4.`) return fail } return win } }</pre>
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)