Rubik's Cube

From Esolang
Jump to navigation Jump to search

Rubik's Cube is an esolang by User:Tommyaweosme where every rubik's cube algorithm is a valid program. (It adds on missing brackets at start and end)

Commands

L <
R >
F +
B -
U [
D ]
U2 .
D2 ,

Ascii loop

F U U2 F D

This leaves the Rubik's Cube like this:

Print "A"

F F U R F F L B D R U L F F R B D L U R F F L B D R U R F R F R F R F R F R F R F R F L L L L L L L L D R R R R R R R R F U2

This leaves the Rubik's Cube like this:

Checker pattern

Depending on which way you do it, this can either be a one-time cat, do nothing, crash certain brainfuck emulators, print start of text, print ■ (or þ depending on the emulator), or do something else I haven't figured out yet.

Nikolas algorithm

This triggers unescapped bracket loops and prints a single character (ASCII 0).