We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

3x3x3

From Esolang
Jump to navigation Jump to search

3x3x3 is a 3D grid-based esoteric programming language created by Pineapple (me). It features a memory layout consisting of a 3x3x3 cube, 27 memory cells in total.

Overview

Memory is arranged in three layers, with layer 1 at the bottom and layer 3 at the top. Each cell is referenced by a coordinate system consisting of a row, column, and layer.

Commands are written as 4-digit numbers: VRCL

  • V: The value being added (1–9).
  • R: The target row (1–3).
  • C: The target column (1–3).
  • L: The target layer (1–3).

For example, 1111 adds the digit 1 to row 1, column 1, layer 1.

Values in cells accumulate. If you run 5111 twice, the value at position 111 becomes 10.

Memory layout

When executed, the program reads memory cells in the following order:

Layer 3

113 123 133
213 223 233
313 323 333

Layer 2

112 122 132
212 222 232
312 322 332

Layer 1

111 121 131
211 221 231
311 321 331

I/O

  • 4444: Prints the ASCII character value of each memory position, following the reading order from layer 3 down to layer 1.

Example programs

Setting coordinates

These commands demonstrate targeting specific positions on layer 1:

1111  
1121  
1131  
1211  
1311