Alphabrain
Jump to navigation
Jump to search
Alphabrain is a joke esoteric programming language created by User:LavaSalt402. It is a Brainfuck derivative where any word (only the Unicode letters 65-90 & 97-122) is a syntax. To actually run the program, the code is first turned into numbers using this Python code: (code is x)
x = x.split(" ")
list = []
for i in range(len(x)):
list.append(0)
for j in range(len(x[i])):
if 97 <= ord(x[i][j]) and 122 >= ord(x[i][j]):
list[-1] += ord(x[i][j]) - 96
print(list)
This turns the text into numbers and add them up. Then, a command is applied for each number:
| AlphaBrain | Brainfuck | Description |
|---|---|---|
| 0-10 | > | Move the pointer to the right |
| 11-20 | < | Move the pointer to the left |
| 21-30 | + | Increment the memory cell at the pointer |
| 31-40 | - | Decrement the memory cell at the pointer |
| 41-50 | . | Output the Unicode value of the cell at the pointer |
| 51-60 | n/a | Output the integer value of the cell at the pointer |
| 61-70 | , | Input a character and store it in the cell at the pointer |
| 71-80 | n/a | Input an integer and store it in the cell at the pointer |
| 81-90 | [ | Jump past the matching 91-99 if the cell at the pointer is 0
|
| 91-99 | ] | Jump back to the matching 81-90 if the cell at the pointer is nonzero
|
Hello, world! program
No no no no no no no no no no no! Ninety AB. No no no no no no bc no no no no no no no no no d no no no no no no no no e no no no no f no no no... "I no can" Can can can can- Can alpha esoteric? H no no no no no. No brain! I no no brain. NO NO NO NO NO NO!!! No brain? Brain. No no. No brain!!! I- A brain? A alpha brain! Can- can alpha brain can brain? NO NO NO "Brain Alpha". Alpha alpha alpha alpha... "Alpha Brain" Alpha alpha alpha alpha alpha alpha alpha? Alpha brain. I- I- I no brain. :( I, Alpha Brain. (:-D)-<-<