A virtual Rubik's cube written in java with multiple functions to manipulate a rubiks cube.
-
demo( int scrams ) -
-
negate( String move ) - Move(String) takes given move and returns the oposite move.
-
rowRight( int row ) - int row(row number 0-2 to be rotated right)
-
rowLeft( int row ) - int row(row number 0-2 to be rotated to the left)
-
columnDown( int column ) - int column ( column 0-2 to be rotated down)
-
columnUp( int column ) - int column (column 0 -2 to be rotated up)
-
calcSim( Cube cube2 ) - Compares each cell of given cube and object cube, returns % similarity
-
printCube() - Prints cube with each face labeled to console
-
scramble( int scrams ) - Randomly makes int scrams amount of random moves to the cube.
-
interpretMove( String move ) - String move (move abbreviation to be completed) executes move abbreviation.
- [0] Front Face
- [1] Top Face
- [2] Back Face
- [3] Bottom Face
- [4] Left Face
- [5] Right Face
[0] [1] [2] [0] R R R
[1] R R R
[2] R R R
- U# - rotate column # up
- D# - rotate column # down
- L# - rotate row # to the left
- R# - rotate row # to the right