esolang

geometryjunp

Brainfuck drawn in the shapes of a platform game. A square starts the level and a bracket ends it.

2022 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 4 known programs · Test method

Run it

Expected: abc

The idea

geometryjunp is named after Geometry Dash, a platform game from 2013. It is brainfuck with each of the eight commands swapped for another character, most of them shapes, and two more. □ begins the program and ] ends it.

The machine

ShapeBrainfuckDoes
□Begin the program
]End the program
_ ▲+ -Add or take 1
◢ ▴> <Move to the right or left cell
› ». ,Print the cell; read a byte, 0 at the end
⦾ ■[ ]Loop while the cell is not 0

The specification says ■ ends the loop when the cell is 0. Its truth machine settles what ⦾ does. It has to skip the loop when the cell is already 0, as brainfuck's [ does, or the machine would print 00 on 0.

Example

The cat reads a byte, then prints and reads until the input runs out.

The cat reads a byte, then prints and reads until the input runs out.

The truth machine prints the digit it reads and copies it into two cells. It takes 48 from one copy and loops on what is left, printing the other copy. On 0 nothing is left; on 1 it prints 1 forever.

Expected: 0

The Hello World is brainfuck's well known one in 108 characters, with a line feed at the end.

Expected: Hello World!

Patterns it teaches

  • Turing tarpit: the eight brainfuck commands in new shapes, so it is exactly as strong as brainfuck.

Further

geometryjunp builds on Brainfuck.

Brainfuck derivatives

Cell-based

Write your own in Run Convert a program from geometryjunp

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: geometryjunp.

Command line

shib run geometryjunp -e '□»⦾›»■]' --input 'abc'
shib manual geometryjunp

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/geometryjunp.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org