We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Кошка

From Esolang
Jump to navigation Jump to search

кошка is joke accumulator-based esolang uses cat emojis as commands

  • 😼 - increment accumulator by 1
  • 😺 - increment accumulator by 2
  • 😹 - increment accumulator by 10
  • 😾 - output it and set it to 0
  • 😽 - halt (optional)

Interpreters

Python

acc = 0

for c in input():
    if c == "😼":
        acc += 1
    elif c == "😺":
        acc += 2
    elif c == "😹":
        acc += 10
    elif c == "😾":
        print(acc)
        acc = 0
    elif c == "😽":
        break