emotifuck
Brainfuck where every command is an emoji.
Turing complete: yes · ●○○ easy
Tested with 3 known programs · Hello World on Try It Online: identical except the line end · Test method
Run it
The idea
emotifuck swaps the eight characters of brainfuck for emoji. Laughing adds one, a pile of poo takes one away, fire and a hundred points move along the tape. Nothing else changes, so every brainfuck program translates one character for one emoji.
Read the story
There is no esolangs.org article for it. The table is read off the hello world TIO runs, and it prints exactly what TIO printed. That program reads no input, so the emoji for , is not known and this implementation leaves input out.
The machine
A tape of byte cells that wrap at 256, growing both ways, and a pointer.
| Emoji | Brainfuck |
|---|---|
| 😂 | + |
| 💩 | - |
| 🔥 | > |
| 💯 | < |
| 💞 | . |
| 🌚 | [ |
| 🐸 | ] |
Every other character is a comment.
Example
In brainfuck this is ++++++++[>++++++++<-]>+..
In brainfuck this is ++++++++[>++++++++<-]>+.. Eight times eight is 64, plus one is 65, A.
Patterns it teaches
- Camouflage: the same machine in a different alphabet.
Further
- TIO's interpreter: github.com/Romulus10/emotif___
See also
Also in Camouflage
Write your own in Run Convert a program from emotifuck
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: emotifuck.
Command line
shib run emotifuck -e '😂😂😂😂😂😂😂😂🌚🔥😂😂😂😂😂😂😂😂💯💩🐸🔥😂💞'shib manual emotifuckSource
- Module
langs/tio/ports.js- Interpreter
langs/tio/emotifuck.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language