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.
Geometry coDe
Jump to navigation
Jump to search
Geometry coDe is an esoteric programming language created by User:Wertix96
| Syntax | Meaning |
|---|---|
| cube | Increment acc |
| ship | Decrement acc |
| ball | Set acc to 0 |
| spider | Invert (3 to -3, -5 to 5, ...) |
| ufo | Add secondary to primary acc |
| robot | Print acc in unicode |
| wave | Loop start (same as in brainfuck but jumps over if zero) |
| swing | Loop end (same as in brainfuck) |
| trigger | User input / Read one character from stdin and store it to acc |
Operations / instructions are executed after an accumulator command:
| spike | Execute with acc 1 |
| saw | Execute with acc 2 |
| block | Execute with acc 3 |
Other instructions:
| mini | Uses acc 1 as secondary acc |
| dual | Uses acc 2 as secondary acc |
| mirror | Uses acc 3 as secondary acc |
| 1x | Reset speed |
| 2x | Execute accumulator commands twice |
| 3x | Execute accumulator commands three times |
| 4x | Execute accumulator commands four times |
| end | Ends program |
Example Programs
Cat:
cube spike wave spike trigger saw robot saw swing spike
Truth-machine:
trigger spike 4x cube saw saw dual 2x ufo saw 4x cube saw saw saw saw 1x spider saw ufo spike spider saw ufo block mini ufo block wave spike robot block swing spike robot block
Implementation
https://github.com/Wertyg88/Wertix-Esolangs/tree/main/Geometry%20coDe