12
\$\begingroup\$

I recently saw this language in a challenge and it's awesome. Does anyone have some tips for ing in it?

Your tips should be at least somewhat specific to MarioLANG.

Please post one tip per answer.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ I may post some later \$\endgroup\$ Oct 4, 2019 at 3:37

2 Answers 2

3
\$\begingroup\$

Use the fall at the end for instructions

This is a pretty simple tip but many MarioLANG programs end something like this, ending with Mario falling down:

.....
=====

and this can be written instead as this:

....
===.

saving two bytes.

If your program has an elevator near an end like this you can often improve even further. This:

]!......
=#======


 <
="

goes to this:

]!.
=#.
  .
  .
 <.
=".

You do have to be careful with the last one though, since the added spaces to get to the final instructions can in many situations be more costly than just writing it largely on one line.

\$\endgroup\$
1
\$\begingroup\$

Duplicate input

Sometimes, you will need multiple copies of a given input - here is a 27 byte snippet that will do this.

>[!
"=#
- )
( +
( )
!+<
#="

Alternate 39 byte horizontal version:

>      [!
"=======#
!-((+)+)<
#======="

Before:

Memory Pointer: ˅
Cell          : n 0 0

After:

Memory Pointer: ˅
Cell          : 0 n n

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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