Decompiling Scripting

As a decompiler, this also doesn't make sense.

  • Refer to Scripting for the original instructions.

Section A: Using directives.

Find out what using directives are unnecessary. The number indicates the using directives from top to bottom on the first 3 lines of the code. Simply click the line with the "using" directive to comment or uncomment it. A grayed line denotes that a directive is commented out.

Lit and Unlit refer to the number of lit and unlit indicators in the table provided. SN refers to serial number.

More lit indicators than unlit indicators SND, TRN, or CLR indicators present Lit FRQ, SIG, or BOB indicators present Unnecessary Directives
False False False None
False False True 3 only
False True False 2 only
False True True 2, 3 if the number of indicators is greater than the last digit in SN, None otherwise
True False False 1 only
True False True 3 if the last digit in SN is 5 or higher, None otherwise
True True False 1, 2 if the number of batteries is even, None otherwise
True True True 1, 2, 3

Section B: The variable.

Use only the first satsfied option you find in this list, starting on the top and going down. The arrows in the images specified will point to the values to account for when reading the code. Cycle between different variable types by clicking on the variable type to the left of the variable name, I.E for the line, int Fuse;, you would click int to cycle between the options.

Set the variable to...

  • int if the Int value is lower than the last digit of the serial number.
  • float if the Float value is lower than the amount of batteries.
  • bool if the condition (the if-statement) is true while the variable is bool.
  • char if the previous variables' conditions were not met. Ignore the values being set and checked upon for this type.

Section C: The method type.

Set the method type to void if the number of solved modules when running the code is even, otherwise set the return type to bool. On the line, public <return type> <method name>, you would click the <return type> to toggle between these method types.

Section D: The action.

Inside the if statement is another method being called which is the action that will be checked when the script runs. Clicking on that method will cycle between other possible methods the code can call. Get the cell that is the intersection of the conditions based off of the serial number and the using directives. That cell gives the action which must be set to when the script is running.

Using directives (Right)

Serial Number (Below)

“KTaNE” is any of the directives being used “KTaNE” is NOT any of the directives being used
Contains any letter in “KTaNE” HandleSolve(); HandleStrike();
Else has a vowel Solve(); Strike();
Else OnSolve(); OnStrike();

To run the script, simply press the "Run Script" button above to check the result. If the script encounters any errors, you will receive a strike.