16
\$\begingroup\$

What general tips do you have for golfing in Starry? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Starry (e.g. "remove comments" is not an answer).

Please post one tip per answer.

\$\endgroup\$
  • 3
    \$\begingroup\$ Related. \$\endgroup\$ – Martin Ender Oct 18 '16 at 21:42
  • \$\begingroup\$ There's a book on esolangs -- how interesting! \$\endgroup\$ – Luis Mendo Oct 18 '16 at 21:56
1
\$\begingroup\$

Use dup and add for large numbers

If you need to produce a big but reasonable number which is a multiple of 2 (and in some cases, even not a multiple), you can push half the number and end with  +* (dup and add) instead of pushing the whole number. The threshold for this is 8 and above.

As mentioned, sometimes you can double, then subtract one (threshold 27), and with multiples of higher 2 powers it can be repeated to gain greater numbers.

Try it online!

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.