SharkScript
Jump to navigation
Jump to search
SharkScript is an esolang by User:Esolangist.
Memory
The memory is a 2D "sea" (many tapes, ∞x∞ square) with a "shark" (memory pointer) and "fishes" (values)
Fishes
Trout - 0
Cod - 1
Salmon - 2
Tuna - 3
Halibut - 4
Seahorse - 5
Carp - 6
Parrotfish - 7
Lanternfish - 8
Anglerfish - 9
Bass - Decimal point
You concatenate them, so 255 would be "a Salmon and a Seahorse and another Seahorse" and 123.45 would be "a Cod and a Salmon and a Tuna and a Bass and a Halibut and a Seahorse".
Commands
v, <, >, ^ - swim in those directions ! - eat the fishes on the current tile, outputting them as ASCII → ← - basically + - in bf ? - ask your fellow shark friends for a number, then some fish appear where you are # - skip over the next command if there isn't any fishes there [] - a box drawn in the sand. your shark friends won't exit until there isn't any fishes in the box
Computational class
This is Turing Complete from brain**** reduction.
| SharkScript | brainfuck |
|---|---|
→ |
+
|
← |
-
|
< |
<
|
> |
>
|
? |
,
|
! |
.
|
[ |
[
|
] |
]
|