Jenga

From Esolang
Jump to navigation Jump to search

Jenga is a language created by User:Yayimhere. It is a single command extension to Topple/Topple 1, created to be turing complete.

Single command addition

The only command added is:

$

which technically also goes as an argument. It calls the last character admitted as a variable, letting it be used in operations.

Computational class

Jenga is turing complete, as it can simulate three cell brainfuck(without wrapping):

start program with:
a=0 b=0 c=0 a^. b^. c^. e=0 s=0;
then:
[...] -> s.{...} 
> -> e^+ s=e; 
< -> e^- s=e; 
+ -> e; $^+ s=e;
- -> e; $^- s=e;