Eek! is an esoteric programming language that only uses the characters "E", "e", and "k".
|E||Moves the pointer to the right once.|
|e||Increments the cell that the pointer is on by 1. Set the cell to 15 if the value stored in it is greater than 15.|
|k||Move the pointer to the right once, then set the cell that the pointer is on to 16.|
In Eek!, the command "E" will move a pointer on an array of cells to the right once. The command "e" will increment the cell that the pointer is on. The language will then interpret the numbers in the array as instructions that it executes. It will start on cell 0, and move to the right. The language usually moves forward one cell before interpreting a number as an instruction. An exception to this is when you use the commands associated with the numbers 10 and 11. If the language moves forward two cells after the command is interpreted, it will interpret the command it is on without moving forward again (if is a 10 or 11, it will move forward.). Another thing to keep in mind is that when command associated with the number 5 causes the language to move backwards, the language will move forward one cell before interpreting an instruction if the instruction's number is lower than 5. Below is the list of numbers that the language will interpret as instructions.
|0||Increment the accumulator.|
|1||Increment the value at the top of the stack by 1.|
|2||Increment the value at the top of the stack by 10.|
|3||Print the ASCII character associated with the value at the top of the accumulator.|
|4||Set the value at the top of the stack to the ASCII value of one byte of input.|
|5||Move the pointer on the array that holds the instructions backwards a number of cells equal to the value in the accumulator.|
|6||Push 0 onto the stack.|
|7||Pop the value off the top of the stack a random amount of times, the highest possible amount of times is equal to the value in the accumulator minus 1.|
|8||Move the pointer on the array that holds the instructions forwards a number of cells equal to the value in the accumulator.|
|9||Pop the value off the top of the stack.|
|10||Move the pointer on the instruction array to the right 2 times if the value at the top of the stack is equal to the value in the accumulator.|
|11||Move the pointer on the instruction array to the right 2 times if the value at the top of the stack is not equal to the value in the accumulator.|
|12||Decrement the accumulator|
|13||Set the value in the accumulator to 0.|
|14||Set the value in the accumulator to the value at the top of the stack.|
|15||Push the value in the accumulator to the top of the stack.|
|16||Terminate the program.|
Simple slot machine game. Try to match 3 characters.
EEEeeEeeEeeEeEeEeEeEeEeEeeeeeeEee EeeEeeEeEeEeEeEeEeEeEeeeeeeeEeEeee EeeeeeeEeeeeee EeeEeeEeeEeEeEeEeEeEeEeeeeeeEee EeeEeeEeEeEeEeEeEeEeEeeeeeeeEeEeee EeeeeeeEeeeeee EeeEeeEeeEeEeEeEeEeEeEeeeeeeEee EeeEeeEeEeEeEeEeEeEeEeeeeeeeEeEeeek
Simple if/else program. If you input "1" it will print "1". Otherwise it prints nothing.
EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE EEEEEEEEE Eeeee Eeeeeeeeeeee Eeeek