Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MI
Posts
1
Comments
3
Joined
7 days ago
Esoteric Languages @programming.dev

A "Hello, world!" program written in Mazerunner, an esolang in which a rat runs through a maze

Esolangs.org Link

In Mazerunner, your code is a maze which is traversed by a rat that always walks along the left wall. If you don't feed the rat enough cheese, it dies from starvation. If you feed it too quickly, it dies from overfeeding.

The rat starts at 'S', eats cheese at 'c' and finishes the program at 'C' (the big cheese pile). Everytime it runs over 'a' or 'b' it adds 1 to the A or B accumulator. 'A' and 'B' do the same for subtracting. 'T' only allows turning left if the B accumulator is 0. 'P' places the A accumulator onto the stack, 'R' outputs the entire stack. There's a few more instructions that are not quite as important.

It's quite a fun and simplistic language (not turing complete in my opinion, due to lacking stack manipulation) that has a few more tricks to it than you might expect at first sight. The challenge of keeping the rat fed is pretty funny and learning how to golf your code is super interesting.

Review: 8/10 you

  • If you leave out the 9% of undecided voters, the poll is 93.4% against joining the US.

    But the poll is also just a representative sample of 497 people, just about 0.88% of the greenland population. So an actual vote might be very different. The poll claims to have an uncertainty between "1.9 and 4.4 percentage points", so the result could be as high as 98% against joining the US