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.

Deadfish but in english

From Esolang
Jump to navigation Jump to search

Deadfish but in english is just Deadfish, but instead of these yucky single character commands, it's sentences. The genius who thought of this is User:Zopium.

Instructions
What it says What it does
Increment the accumulator Increments the accumulator.
Decrement the accumulator Decrements the accumulator.
Square the accumulator Squares the accumulator.
Output the accumulator Outputs the accumulator to the console.
Halt Halts.

It is that awesome.

Examples

XKCD Random Number

Increment the accumulator, and then increment the accumulator, 
and then square the accumulator, and then output the accumulator, 
and then halt.

And because of how this is implemented, you can do stuff like this:

Increment the accumulator 4 times, and then output the accumulator, 
and then halt.

It might ruin the idea, but i dont care lol

Oh and if you try to enter a negative number, it'll be automatically converted to its absolute value.

Program that counts down from 10 to 1

Increment the accumulator 10 times, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then output the accumulator, 
and then decrement the accumulator, and then halt.

Links

The NodeJS implementation on Codeberg