Anti-Plushie language

From Esolang
Jump to navigation Jump to search

Anti-Plushie language is a language made to be plushie incomplete, by User:None1.

Commands

It is the same as deadfish, except these differences:

  1. If the accumulator will be 4 after a command, instead of executing the command, it prints Fuck off! and halts.
  2. If the accumulator will be 31 after a command, instead of executing the command, it prints Cut it out! and halts.
  3. If the accumulator will be 3 after a command, instead of executing the command, it prints Fuck you! and halts.
  4. If the accumulator will be 2 after a command, instead of executing the command, it prints Oh shit!!! and halts.

Therefore, the language is plushie incomplete.

Example Programs

Print Cut it out! with an unbounded accumulator

dddddsiiiiii

Print Fuck off! with an unbounded accumulator

(-2)²=4 is used to avoid the Oh shit!!! case.

dds

Print Oh shit!!!

ii

Print 1

io

Print 9 with an unbounded accumulator)

dddso

Note: (-3)²=9

Print Cut it out! with an unbounded accumulator

ddddddsddddd

Print Fuck you! with an unbounded accumulator

dddsdddddd

Implementations

A python implementation by User:Ractangle (including the option of turning on/off bounding of the acumulator)

BOUND=0
a=0
for i in input().lower():
    if i=="i":a+=1
    elif i=="d":a-=1
    elif i=="s":a*=a
    elif i=="o":print(a)
    if a==4:print("Fuck off!");exit()
    if a==31:print("Cut it out!");exit()
    if a==2:print("Fuck you!");exit()
    if a==3:print("Oh shit!!!");exit()
    if a in[256,-1]and BOUND:a=0

Note

Since this esolang is plushie incomplete, it cannot do the XKCD Random Number task.

See also