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.

Oceanfunge

From Esolang
Jump to navigation Jump to search

Oceanfunge by User:Cordership is an esolang based on dolfins grace.

Syntax

S make a pointer named dolfin
/ mirror 90 degrees
\ mirror 90 degrees
| mirror 180 degrees (horizontal)
_ mirror 180 degrees (vertical)
~ puts user's character into stack
& puts user's integer into stack
! dolfin treats it like "/" if top is 0, goes through if not 0.
? dolfin treats it like "\" if top is 0, goes through if not 0.
a dolfin treats it like "|" or "_" if top is 0, goes through if not 0.
- pop values a and b, push b-a
+ pop values a and b, push a+b
* pop values a and b, push a*b
` pop values a and b, push b/a rounded down
% pop values a and b, push b%a
^ pop values a and b, push b^a
" toggle stringmode from befunge
; dolfin goes random direction
= duplicate top stack value
( rotate top 3 clockwise
) swap top 2
# pop top and output as integer
$ pop top and  discard
^ pop top and output as ascii
& pushes thing at a,b. if out of bounds, pop all of the stack and immediately end the program
_ puts a at b,c (without popping 
e dolfin eater
0-z put alphanumeric character on stack
{ diode (dolfin gets stabbed if coming in from left)
} diode (same as above but for right)
' 180 reflector
[ dolfin treats it as "/" if the top 2 of stack are not same, otherwise it goes through
A-Z portals (exit and enter portals must have matching letters)
@ put over a portal to make it unenterable
> pop values a and b, push b>>a
< pop values a and b, push b<<a
! all-directions if from gridify
a pop top, push it into box
b reverse of a
k pop values a and b, push b a times
o pop everything and output as integer
p pop everything and output as ascii
c pass through once, then act as "/"
d pass through once, then act as "\"
e pass through once, then act as "_" or "|"

Examples

Hello, World!

S"!dlroW ,olleH"pe

Cat program

Sc~\
 \p/