this post was submitted on 29 Jan 2025
35 points (92.7% liked)

Esoteric Languages

244 readers
1 users here now

Icon base by Lorc under CC BY 3.0

founded 2 years ago
MODERATORS
 

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 should give it a try at least once (but I'm biased for 2D languages)

you are viewing a single comment's thread
view the rest of the comments
[–] KindaABigDyl@programming.dev 11 points 2 days ago* (last edited 2 days ago) (1 children)

❌ Imperative

❌ Functional

❌ Object-oriented

❌ Stack-oriented

❌ String-replacement

✅ Rat-Oriented

[–] MissGutsy@lemmy.blahaj.zone 1 points 2 days ago

The only metric that matters LOL