Candycanes

From Esolang
Jump to navigation Jump to search

Candycanes is an esolang made out of candy canes.

Textual representation

It would be incredibly tedious to program in this language properly with all the right candy canes put in the perfect places.

Therefore, a textual representation is also valid.

Please ignore the validity of these programs for the sake of examples.

A red candy cane on top of a green candy cane both pointing right would look like this:

πŸ”΄πŸ”΄πŸ”΄πŸ”΄>
🟒🟒🟒🟒>

And the green one facing left would be this:

πŸ”΄πŸ”΄πŸ”΄πŸ”΄>
<🟒🟒🟒🟒

A chain of red-green making a top-right corner would be this:

πŸ”΄πŸ”΄πŸ”΄πŸ”΄>
          🟒
          🟒
          🟒
          🟒
          v

Flavor grid

πŸ”΄πŸŸ‘πŸ”΅
🟠🟒🟣

Instructions

VALUE SET RIGHT
LEFT IF IN/OUT

IN/OUT does input when the cell is 0 and outputs alphabet when the cell isn't.

IF goes left if the cell at pointer is 0, otherwise it goes right.

Merge/split

Assuming there is a structure looking like this:

 v
>  >

The top one goes down, and then follows the arrows.

If you split not on an IF, the code follows both paths at once. Confusing, right?

You can reset color with a pencil with the same length as a candy cane, it's emoji being βšͺ.

Example Programs

"Hi"

πŸ”΄πŸ”΄πŸ”΄πŸ”΄>πŸ”΄πŸ”΄πŸ”΄πŸ”΄>πŸ”΄πŸ”΄πŸ”΄πŸ”΄>πŸ”΄πŸ”΄πŸ”΄πŸ”΄>πŸ”΄πŸ”΄πŸ”΄πŸ”΄>
                                               πŸ”΄
                                               πŸ”΄
                                               πŸ”΄
                                               πŸ”΄
                                               v
       <🟑🟑🟑🟑 <🟣🟣🟣🟣 <πŸ”΄πŸ”΄πŸ”΄πŸ”΄ <πŸ”΄πŸ”΄πŸ”΄πŸ”΄

History and background

This was made on December 3rd to celebrate User:Tommyaweosme's 1.5 year anniversary on Esolang.