Bedroom
Jump to navigation
Jump to search
Bedroom is an esolang made by User:AmNow
Commands
Specification Notes
In Bedroom, the program should look like a messy childβs bedroom. The instruction pointer starts on cell (0,0) and starts moving right.
# ^ This cell.
Programs must have at least 1 π. See below.
The actual commands
Command | Description |
---|---|
β¬οΈ
|
Move the instruction pointer up. |
β¬οΈ
|
Move the instruction pointer down. |
β¬
οΈ
|
Move the instruction pointer left. |
β‘οΈ
|
Move the instruction pointer right. |
π
|
Halt the program. |
π
|
Increment the current memory cell value by one. |
π§Έ
|
Decrement the current memory cell value by one. |
πͺ
|
Move the memory pointer one cell to the left. |
πͺ
|
Move the memory pointer one cell to the right. |
π
|
Prompt the user for an ASCII character and store its character code in the current memory cell. |
π
|
Output the ASCII character associated with the current memory cell value. |
π
|
If the current memory cell value equals 0, turn 90Β° CCW. |
Programs
Infinite loop
β‘οΈβ¬οΈπ β¬οΈβ¬ οΈ
Golfed:
β‘οΈβ¬ οΈπ
Truth-machine
ππ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺβ¬οΈπ β¬οΈπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έβ¬ οΈ β‘οΈπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺβ¬οΈβ¬οΈβ¬οΈ β¬οΈπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έβ¬ οΈβ¬οΈπ β‘οΈπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺβ¬οΈβ¬οΈβ¬οΈ β¬οΈπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έβ¬ οΈππ β‘οΈπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺβ¬οΈπͺπͺ β¬οΈπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έπͺππͺπ§Έβ¬ οΈβ¬οΈπ β‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ‘οΈβ¬οΈ
Cat program
An infinitely repeating cat program is implemented in the following:
β¬οΈ π β‘οΈπππβ¬οΈ β¬οΈβ¬ οΈβ¬ οΈβ¬ οΈβ¬ οΈ
Interpreter
- Common Lisp implementation of the Bedroom programming language. Please note that the concrete character set deployed constitutes a dependency on the Common Lisp implementation; in corollary, Unicode support may or may not be a feature incorporated in the personal environment. The interpreter at hand has been developed and tested with Steel Bank Common Lisp (SBCL) version 1.1.4 as part of the Lisp Cabinet 0.3.5 bundle.