Skip to content

harbar20/3py3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

3py3

Virtual Rubik's Cube in Python.

How to Use

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:

Cube.execute(self, moves)

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.

Cube.get_scramble(self, numMoves)

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.

Cube.get_solve(self)

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.

str

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.

ENJOY

About

Virtual Rubik's Cube in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages