🐱🐈

From Esolang
Jump to navigation Jump to search

🐱🐈 is a joke esoteric programming language designed to be Plushie-complete, and has no further computational power.

Overview

The language has a single 1-trit register A initialized to 0. The language has the following commands:

  • 🐱 sets A to 2
  • 🐈 prints "4" if A is 2, else, it prints "31"

Computational class

🐱🐈 is Plushie-complete because it is capable of setting a variable to 2:

🐱

printing 4:

🐱🐈

and printing 31:

🐈

Implementations

Python

code = "🐱🐈"
a = 0

for c in code:
    if c == '🐱':
        a = 2
    elif c == '🐈':
        print(4 if a == 2 else 31)
    else:
        pass

See Also