- This is still a work in progress. It may be changed in the future.
Pizza Delivery is yet another esolang by Cortex designed to be similar to the logic of other Cortex languages, but more concise. It is named after the Spider-Man 2 Pizza Theme (despite having no real relation), and it is ideal that you play the song on loop while coding in Pizza Delivery. Its data model is technically a 2-dimensional array of cells, but Cortex prefers to call it a square. It might be a finite-state automaton.
The square is a 16x16 "grid" of numbers. Each "tile" in the square can have a value from 0 to 255. For the sake of brevity, this explanation will use a 4x4 square instead of the standard 16x16. At the start of the program, the square would look like this (an asterisk indicates the location of the pointer):
[*0,0, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0] [0, 0, 0, 0]
When a tile is selected, you can read and write to the value of the tile.
|Character||What it does|
||Move the pointer in the square north, west, south, east, northwest, northeast, southwest, or southeast|
||Get a number from user input and write it to the selected tile.|
||Print the value of the selected tile (which will from here on be referred to as L) as an ASCII value|
||Increment, decrement, or double the selected tile|
|Any sequence of hex digits from 0-F||Write that number to the selected tile. (letters must be capital)|
||Interpret L as Pizza Delivery code.|
||End the program.|
||While L is nonzero|
||While L is zero|
||Begin or end a comment|
1 character cat program
Input must be the character's ASCII value.