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.

Truth Machine (language)

From Esolang
(Redirected from Truth Machine (esolang))
Jump to navigation Jump to search
Not to be confused with Truth-machine.

Truth Machine is an esolang created by User:ResU in 2021.

Commands

Cmd Description
input(a) Gets user input.
if a=0: Self-explanatory.
print(0) Self-explanatory.
stop Self-explanatory.
if a=1: Self-explanatory.
print(1) infinity Self-explanatory.

Examples

Truth-machine

input(a)
if a=0:
print(0)
stop
if a=1:
print(1) infinity

Interpreter in Python

def stop():
    break
def print_infinity_ones():
    while True:
        print(1)