Two-dimensional languages
138 languages in the esolangs.org category Two-dimensional languages, by group.
Turing tarpits
2L
Brainfuck on a grid with two symbols. A * means one of four commands, and which one depends on the way the pointer is moving.
Puzzlang
Brainfuck with one symbol. Every X is a command, and which command depends on the three characters above it.
2009●●●runnable1L_a
Two symbols: a space, and everything else. The spaces do the work and the rest are walls.
2005●●●runnable1L_AOI
One symbol. A + is both the only instruction and the only way to turn.
Ring-around-the-Rosie
One register in the middle, a ring of nodes around it, and no jumps. The register itself says which node runs next.
2026●●●runnableYABALL
Yet Another Brainfuck A Like Language. Brainfuck's tape, run along lines that wrap into each other, with a second mode that walks backwards.
2005●●○runnableFunctional and concatenative
Rewriting
Spatial (2D and up)
Befunge
Code on a grid. The instruction pointer walks in four directions, wraps at the edges, and can rewrite the grid it walks on.
1993●●○runnableBefunge-96 and Funge-97 (MTFI)
The drafts between Befunge-93 and Funge-98, from one line up to seven dimensions, with a stack that can be worked from the bottom.
1993●●●runnableFish (><>)
A fish swims through a 2D codebox, bouncing off mirrors, carrying a stack of stacks. One wrong move and something smells fishy.
2009●●○runnablePiet
Programs are pictures that look like Mondrian paintings. A command is not a colour but a change of colour.
2001●●○runnableAheui
A Befunge written in Korean. Each Hangul syllable is one command, and its vowel decides where the cursor goes next.
2005●●○runnableAsciiDots
The program is a drawing of pipes. Dots carrying numbers run along them, all at once, and meet at operators.
2017●●○runnableSNUSP
Brainfuck drawn as a railway map. Loops are real loops of track, and the train stops when it runs off the edge.
2003●●○runnableBefunge-98
Befunge without walls. The grid never ends, a program can hold a stack of stacks, and one instruction splits the pointer in two.
1998●●●runnableUnefunge and Trefunge
Befunge’s commands on a line (Unefunge) and in three dimensions (Trefunge), from the Funge-98 family.
1998runnableUnefunge-98 and Trefunge-98
Funge-98 on a line and in a cube. The same instructions as Befunge-98, with one direction pair fewer or one more.
1998●●●runnableFunciton
Programs drawn with box-drawing characters. Boxes are functions, lines carry numbers, and the one loose wire is the output.
2011●●●Brainloller
brainfuck as a picture. Each colour is a command, and two more colours turn the pointer. This implementation writes the colours as letters.
2005runnablePATH
brainfuck drawn on a grid. Arrows turn only when the cell is not 0, so a loop is a closed path with an exit.
2003runnableWierd
The program is a drawing of wires; the angle of each turn in the wire is the instruction.
1997runnableHexagony
The source is folded into a hexagon. Six instruction pointers wait in its corners, and memory is a hexagonal grid too.
2015●●●runnableArgh!
A Befunge where the letter case says which way to look: uppercase reads the cell above, lowercase the cell below.
2004●●○runnable"*><> (Starfish)"
><> with functions, a way to swim past code without running it, and a fisherman who pulls the fish down a line and back.
2016●●○runnableLNUSP
Five commands on a two-dimensional grid of code, steering through a two-dimensional grid of memory.
2004●●●runnableHalf-Broken Car in Heavy Traffic
You are a car on a chaotic highway. Every road sign you obey also changes your memory, and you cannot turn left.
2011●●●runnableMarioLANG
The program is a Super Mario level. Mario walks over it, falls off ledges and rides elevators, and the items he touches are brainfuck.
2009●●○runnableRe:direction
Four arrows and a diamond. Every arrow the pointer runs is remembered on a queue, and the queue is all the memory there is.
2018●●●runnableSuperMarioLang
A brainfuck tape worked by Mario, who walks along the ground, falls into holes and rides elevators.
2009●●○runnableArchway and Archway2
Brainfuck on a grid where the only loops are arches, drawn so that no wire ever crosses another.
2005●●○runnableDig
A mole crawls over a grid. Above ground it can only turn; to do any work it has to dig.
2020●●○runnableFishing
A fisherman walks along a dock, casts his line, and whatever fish he catches is the instruction.
2013●●○runnableHZCode
A Befunge of Chinese characters, run by a queue of instruction pointers.
2023●●○runnableLabyrinth
The program is a maze. There are no arrows: the instruction pointer follows corridors, and at every junction the stack decides which way to turn.
2015●●○runnableMineFriff
Befunge and ><> brought into Minecraft. Each command is a block, and a program can be built in a world as well as typed.
2018●●○runnableMinimal-2D
brainfuck on a grid with direction letters U D L R, and / to skip the next command when the cell is 0.
RASEL
A Befunge that cannot write to its own code, and gets random access to its stack instead.
2020●●○runnableStackowey
A wrapping grid, one stack, and mirrors that only reflect when a comparison says so.
2025●●○runnable(top, height)
The stack is the instruction pointer. Its top value picks the column and its height picks the row.
2021●●●runnableADJUST
A Divergent Jumble of Unrelated Symbolic Terms. Every printable character is an instruction, and what it does depends on its prime factors.
2005●●●runnableCardinal
Pointers fly out of every % in all four directions, and each carries only two numbers.
Eso2D
A fungeoid that wraps at every edge, steering one pointer along a tape of bytes.
2020●●○runnableJolverine
One symbol does everything. Which thing it does depends on a wheel of seven instructions that reshuffles itself each time it is used.
2012●●●runnableMadbrain
The program runs down the lines, but each line runs only one of its characters. Which one is up to a second pointer.
2010●●○runnableReflecto
A stack language drawn as a room of mirrors.
2025●●○runnableTrajedy
Befunge with the stack taken out. All that is left to remember with is where the pointer is.
2017●●●runnableAlice
Two languages on one grid. Moving straight it works on integers, moving diagonally on strings.
2017●●●runnableaxo
A Befunge relative whose strings still obey the arrows, so a message can turn a corner in the middle of a word.
2004●●○runnableBeam
A beam of light carries one byte across a grid of mirrors, and a store beside it counts the loops.
2012●●○runnableBeeswax
Bees crawl over a hexagonal honeycomb, each carrying a stack of three numbers.
2015●●●runnableBut Is It Art?
A program is a box of tiles. It succeeds when they tile a rectangle that spells its input.
2017●●●runnablePirandello
Six signs of arithmetic, and not one of them does arithmetic the way you think.
2011●●○runnableShove
A 2D language that never overwrites code. It shoves strings in, and the rest of the row slides out of the way.
2008●●●runnableSpiral
The pointer rolls along tracks of code like a train, and at every cell it tries to turn.
2003●●●runnableWumpus
A Fungeoid on a grid of triangles, with twenty registers on a die that rolls across the code.
2018●●●runnableZiim
Arrows that point at arrows. An arrow's instruction is whatever points at it, and at what angle.
2011●●●runnable2Deadfish
Deadfish laid out on a grid, where every command also turns the pointer.
2021●○○runnableA Slow Language
A turtle walks the grid and works a stack, and being a turtle, it takes its time.
●●○runnableBefalse
FALSE's stack, Befunge's grid and SNUSP's mirrors and calls, glued together without a single letter.
2005●●○runnableBlockfunge
Befunge cut into boxes. Each box is a function, and an arrow points at it from its name.
2019●●○runnableBooleanFunge
A fungeoid where every turn leaves a boolean on the stack.
2023●●●runnableBrafunge
Brainfuck's tape, steered by Befunge's pointer.
2025●●○runnableClockwise
A pointer that can only turn right, and a program that ends when it comes home.
2020●●○runnableCSL
Command Stack Language. Instructions are not run when they are read; they are stacked up and run later, last one first.
2016●●○runnableCubix
The code is folded onto a cube, and the pointer walks over its edges onto the next face.
2016●●○runnableElectra
You wire it like a circuit. Currents run along cables, split at every junction and die on bare ground.
●●●runnableExcellerated Short-Term Memory Loss
A spreadsheet that forgets. Each cell has a stack of three, and keeps one value when the program moves on.
2021●●○runnableFlobnar
Befunge turned functional. Nothing moves; every cell is an expression that asks its neighbours for values.
2011●●●runnableKlein
A 2D language that runs on a surface of your choosing: a torus, a Klein bottle, a projective plane.
2017●●○runnableLost
The pointer starts on a random cell, moving in a random direction. A program has to find it and lead it home.
2017●●●runnableManufactoria
A factory floor drawn in letters. A robot rides the belts with a queue of colours, and the machine decides where it ends up.
2014●●○runnableMarbelous
A marble run. Byte-valued marbles fall down a board of two-character devices, all at once, tick by tick. Whatever falls off the bottom is printed.
2014●●○Mazerunner
A rat solves the maze with its left hand on the wall. The instructions are what it steps on.
2023●●○runnableMiLambda
A two-dimensional language written in Greek. The program ends at λ.
2015●●○runnableNhohnhehr
One small square room that never changes. Walk out of it and a turned copy of the room appears on the other side.
2010●●●runnablePlanes
Every line is a little program of its own, and each one remembers where it stopped.
2025●●○runnableQuipu
Knotted cords, after the recording devices of the Inca. Each cord is a column of knots and works out one value.
2013●●○runnableRail
The program counter is a train. It can only go where track has been laid, and it cannot turn sharper than 45 degrees.
2005●●●runnableRecurse
Befunge cut into boxes. Each box is a function, and a call keeps the way the pointer was going.
2006●●●runnablerefract
><> with blocks, a portal and stacks inside stacks.
2015●●○runnableReversible-2D
Threads crawl over a grid and trade values with it. Every step is meant to run backwards as well as forwards.
2010●●○runnableSimplefunge
Befunge with the clever parts taken out: arrows, a stack, and two ways to dig into it.
2014●○○runnableSurface
The program and its memory are both drawn on a Klein bottle, and every arrow moves both pointers at once.
2011●●●runnableSwordfish
A smaller ><>. Whatever the pointer swims past that is not a command sticks to the var.
2013●●○runnableTrack
Brainfuck's cells, laid out as a railway. The only switch reads a number.
2009●●○runnableWatnoxt
What? 1? Next line! Three instructions on a row of bits, and the line you are on decides what happens at its end.
2022●●○runnable2DFIM
Two instructions on a grid, and the only jump is a step down.
2026●●●runnableAceto
The pointer does not move in lines. It follows a Hilbert curve through a square of code.
2017●●○runnableBouncy
Four mirrors, four modes. The same wall bounces, vanishes, steers along or steers across.
2024●●○runnableBrainSpace 1.0
Brainfuck's tape, steered by a Befunge pointer that bounces off PingPong mirrors.
2008●●○runnableCuboid
Draw a box in ASCII art, and its volume is the character it prints.
2022●○○runnableDOBELA
Dots of 0 and 1 fly across the grid, bounce off walls and crash into each other. The only memory is one queue of bits.
2008●●●runnableFission
Atoms fly over the grid, splitting and fusing, and the program ends when the last one is gone.
2014●●○runnableFlux (Esolangist)
Befunge's playfield, with loops you can name and a way back to where you were.
2025●●○runnableFoldy
A 2D language that starts out as a single line, and folds itself into a grid as it runs.
2025●●○runnableGrok
Befunge as a Vim user would write it. hjkl steer, i starts typing and a backtick escapes.
Hanabi
Every instruction is a dot, and what it does is the empty space around it.
2018●●●runnableHive
Every ant carries one number. To add two numbers, two ants have to meet.
2023●●●runnableInterlude
A program in acts, split by pipes. Each act is a small program of its own, and a run has to pass through at least two.
2021●●●runnableJavagrid
A program is a table of cells, and each cell calls a neighbour, carrying a cube that rolls on the way.
●●○runnableLeft Curly Brace Symbol
Its real name is {. A pointer walks a path of braces, and a digit picks what each } does.
2022●●○runnableLenta
Befunge's grid on top of brainfuck's tape, with one buffer in between.
2011●●○runnableMalfunge
Befunge where the arrows are retroreflectors. Run into the open side of one and you bounce straight back.
2021●●○runnableOW-1
Two cells, one buffer and a grid of arrows. Every sum lands in the buffer first.
2022●●○runnableRain
The pointer only falls or climbs. To move sideways it has to make a call.
2017●●●runnableRopy
The program is a rope of characters, and the pointer crawls along it.
2012●●●runnableSnake Shit
A snake crawls over the program. The only number it has is the length of its tail.
2022●●○runnableSuich
Every step moves one line down and one column right, so the program runs along a diagonal that wraps.
2019●●●runnableTriangular
The code is folded into a triangle, and the pointer walks it in eight directions.
2017●●●runnableUzumaki
Every program is a square, and the code runs round it in one spiral towards the middle.
2022●●○runnablev³
A two-dimensional program folded onto a cube, and the instruction pointer falls with gravity.
2021●●●runnableVersert
What happens to Befunge when you take away its stack? Two registers and a pointer into the code are left.
2005●●○runnableVirage
A program is a drawing of a graph. Each vertex does what the angles of its edges say.
2019●●●runnableYATDEL
Yet another two-dimensional esoteric language. Pointers walk a grid with a stack each, split in two and step down into other files.
●●○runnableAt some land
A Befunge-like grid without wrap around. Step off the edge and the program is over.
●●○runnableBot Engine
Bots carrying queues of symbols roll over a grid of instructions, as in the game Manufactoria.
2015●●○runnableDirection
A 2D language where every arrow is gone once you have stepped on it.
2024●●○runnableForked
A two-dimensional language whose only conditional is a fork in the road.
2017●●○runnableJollyScript
Every program is a Christmas tree, and the cursor falls through it from the star to the trunk.
●●○runnableLaser
A beam of light with a colour and a brightness. What a mirror or a sign does depends on which way the beam is going.
●●○runnableA two-dimensional language where a string is written as a string and 256 as 256.
●○○runnableMinkolang
A 2D language with time as a third dimension. On a space, the pointer falls to the next layer.
2015●●●runnableMoving donut
A donut rolls through a maze and runs whatever it rolls over.
2023●○○runnableNix
Befunge squeezed onto one line. The pointer runs left or right, and the line wraps around.
●●○runnableNumber2D
Seven digits on a grid. Two of them turn, three work the tape of bits, one prints a byte and 0 stops.
2022●●○runnableRatsize
A program read from the bottom up, one queue, and a pointer that can only climb.
●●●runnableSuper SNUSP
SNUSP's mirrors and tape, with a command for almost every printable character.
●●○runnableTimeline
A grid that is really a stack of grids. Every letter shows another value on every layer, and the pointer can only go down.
2025●●●runnableHostile
Shuffle
A program is two hands of cards. The interpreter plays War with them, and every trick it plays is a command.
2016●●●runnableRotary
Every program is drawn as rings of 34 instructions, and the specification was written to confuse.
2014●●●runnableCubically
The memory is a Rubik's cube. To get a number you turn the faces until the stickers add up to it.
●●●runnableStrange time
Jokes
Ouroboros
Every line of code is a snake biting its tail. The only way to stop a loop is for the snake to eat itself.
2015●●○runnableMirror
A language that mirrors a command each time it passes over it.
●○○runnableMonkeys
Seven monkeys on a grid of ladders. Each one holds a number, and arithmetic happens when they stand next to each other.
2012●●○runnable