Anti-Plushie language
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:
- If the accumulator will be
4after a command, instead of executing the command, it printsFuck off!and halts. - If the accumulator will be
31after a command, instead of executing the command, it printsCut it out!and halts. - If the accumulator will be
3after a command, instead of executing the command, it printsFuck you!and halts. - If the accumulator will be
2after a command, instead of executing the command, it printsOh 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
- Anti-Plushie language DIY, where you can decide the restrictions.