One Script Challenge

Try to create a single script that does as much as you want. Be it, computing a factorial, encoding/decoding text, really anything you would like.

Rules:

  • It has to be one script, runnable in a sprite (you can also clone a turtle if your on the stage, if you want to do it that way).
  • No custom blocks. Setting rings for functions IS allowed however.
  • You can’t use any hat blocks SEPARATE from the script (you’ll have to figure a LAUNCH with WAIT UNTIL out), so you can still put a WHEN KEY PRESSED or WHEN GREENFLAG PRESSED hat in there.

For example:

Aside from the ‘no custom blocks’ and the ‘no separate hat blocks’ rules, this is my programming style!