# Tips for golfing in MarioLANG

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.

• I may post some later – HighlyRadioactive Oct 4 '19 at 3:37

# 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.

# 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