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.

tr++

From Esolang
Jump to navigation Jump to search

Tr++ is an extension of tr developed by User:Klk bb that adds a couple of commands.

Commands

In addition to the "2" command from the original tr, tr++ adds:

3 outputs "4" (XKCD Random Number).

4 is the opposite of the "3" command and outputs "3".

Examples

Hello, world!

2

XKCD Random Number

3

Quine

tiro

Interpreter

Python

print({'2':'hello, world','3':'4','4':'3'}.get(input(),'tiro'))

See also