Category:Challenges

From Hack Wars Wiki

Jump to: navigation, search


There is currently only one challenge. It is given to you by Dedrick, in his quest. Once he gives it to you, you will find it on your hard drive (Places --> Home).

  1. Look at the description.
  2. Open the Script Editor, and start a Challenge Script.
  3. Do the challenge (use the HWiki API functions).
  4. Press the Run Challenge script button.
  5. Enter in the Challenge number that you can find in the properties of the file (Places --> Home, select the file).
  6. If you did it correctly, it will tell you.

[edit] Anatomy of a Challenge

The description of a Challenge dictates what input will be given and asks for a specific output. The goal of your Challenge script is to convert the given input to the expected output. The inputs can consist of strings, floats or integers, and the corresponding functions to get these are getInputString(), getInputFloat() and getInputInt(). Use setOutputString(), setOutputFloat(), etc. to output the expected result.

[edit] Example

Input Output Demonstration

Personal tools