Crypten
Jump to navigation
Jump to search
Crypten is a matrix-based esolang made by User:Ϫ inspired by the X bits X bytes trend and designed to be a code golfer's best nightmare.
Syntax
Crypten uses an infinite grid with the top-left corner defined.
Commands
Crypten has 16 commands, each for a different hex value.
| Code | Function |
|---|---|
| 0 | No-op. |
| 1 | Increments the current cell in the matrix. |
| 2 | Decrements the current cell in the matrix. |
| 3 | Move left in the matrix. |
| 4 | Move up in the matrix. |
| 5 | Move right in the matrix. |
| 6 | Move down in the matrix. |
| 7 | Reset the position to the top-left corner of the matrix. |
| 8 | If the current cell in the matrix is 0, go back to the last 9. |
| 9 | See 8. |
| A | Replaces the current cell in the matrix with the input as a number. If the input is not a number, output "THAT AIN'T A NUMBER, SONNY." |
| B | Outputs the current cell's value as a Unicode character. |
| C | Outputs the current cell's value as a number. |
| D | Add this cell's value to the cell 1 cell down from it and clears this cell. |
| E | Replaces the current cell in the matrix with the input as a Unicode character. |
| F | End the program. |
But, you see, here's the kicker: Programs are written as UNICODE characters made up of 4 commands in a row. For example, a program with the raw code of '00eb' would be written as 'ë'.
Programs
Basic Cat
ë 00eb
Adder
ڤ구 06a4 ad6c
Doubler
©☖ᑈ浬 00a9 2616 1448 6d6c
Truth Machine
ꊑ슟 a291c28f
Side Notes
Since Crypten is basically brainfuck on a matrix, and since brainfuck is Turing-complete,[1] that should make Crypten turing-complete as well.