Virtual Rubik's Cube in Python.
This program creates a class called Cube()
. The user has to create an instance of Cube()
and now has the capability to use the following functions:
This function executes a given list of notations on the current state of the cube, regardless of whether the cube is in its solved state or not.
This function returns a list of notations that is exactly numMoves
long. This list can be used to input into Cube.execute(moves)
to
execute the list of notations.
This function returns a list of notations that gives the exact solution to the current state of the cube; it does not require any inputs.
When printing this function, the printed cube should look somewhat like this: || |*U1U2U3| || |*U4U5U6| || |*U7U8U9| || |||***** L1L2L3|F1F2F3|R1R2R3|B1B2B3 ||| L4L5L6|F4F5F6|R4R5R6|B4B5B6 ||| L7L8L9|F7F8F9|R7R8R9|B7B8B9 ||| || |*D1D2D3| || |*D4D5D6| || |*D7D8D9| |*****| Where each letter represents a color based on the orientation of your cube.