I fuck, you fuck

From Esolang
Jump to navigation Jump to search

I fuck, you fuck is a psuedonatural esolang used for insulting others doing Project Euler problems. It is invented by User:None1.

It is case insensitive.

Data Storage

Variables with unbounded unsigned integers are used.

Commands

Variable definition

There's a fucker named X

Define a variable named X, initially zero. The names You, me and I are reserved.

Increment and decrement

I fuck X

Increment X.

I unfuck X

Decrement X, if the result is less than zero, then result in zero.

I/O

You fuck X

Get an integer from user input and store it into X.

You fuck X again

Get a character from user input and store its ASCII into X.

X fucks you

Output X as decimal.

X fucks you again.

Output X as ASCII.

Termination

Fuck you

Terminate the program.

Arithmetic

X fucks Y

Add Y by X.

X unfucks Y

Subtract Y by X, if the result is less than zero, result in zero.

X fucks Y again

Multiply Y by X.

X fucks Y over and over

Let Y be XY.

X unfucks Y again

Let Y be the quotient of X/Y.

X unfucks Y over and over

Let Y be the remainder of X/Y.

Comment

Fuck! Any text

Is a comment, the space is MANDATORY.

Control flow

While loop

while X is fucked
CODE
end fuck

While X is not zero, do CODE.

while X is unfucked
CODE
end fuck

While X is zero, do CODE.

while X is more fucked than the Y 
CODE
end fuck

While X is greater than Y, do CODE.

while X is less fucked than the Y 
CODE
end fuck

While X is less than Y, do CODE.

Conditonal statement

It is like the while loop, just replace the while with if.

The if-else statement is allowed:

Any if statement
CODE1
else fuck
CODE2
end fuck

For instance:

If A is fucked
A fucks you
else fuck
You fuck A
end fuck

Assuming that the variable A is defined, this program outputs A if it is nonzero, otherwise, it reads A.

Literals

Fuck X integer times

Add X by integer.

String output

fuck "Base64 of any text"

Outputs the corresponding text without spaces or line feeds after it.

Example programs

Hello World

fuck "SGVsbG8sIFdvcmxkIQ=="

Project Euler

16

There's a fucker named a
Fuck a 2000 times
There's a fucker named b
Fuck b 2 times
b fucks a over and over
b unfucks b
There's a fucker named c
while a is fucked
c unfucks c
Fuck c 10 times
a unfucks c over and over
c fucks b
c unfucks c
Fuck c 10 times
a unfucks c again
a unfucks a
c fucks a
end fuck
b fucks you

20

There's a fucker named a
There's a fucker named b
Fuck b 100 times
while b is fucked
b fucks a again
I unfuck b
end fuck
There's a fucker named c
while a is fucked
c unfucks c
Fuck c 10 times
a unfucks c over and over
c fucks b
c unfucks c
Fuck c 10 times
a unfucks c again
a unfucks a
c fucks a
end fuck
b fucks you

Truth Machine

There is a fucker named x
You fuck x
if x is fucked
while x is fucked
x fucks you
end fuck
else fuck
x fucks you
end fuck

Cat Program

you fuck x
while x is fucked
x fucks you again
you fuck x
end fuck