| Constructor and Description |
|---|
CubeSolver() |
| Modifier and Type | Method and Description |
|---|---|
private static Color |
convertOrientation2FaceColor(Orientation orientation)
Convert cube's orientation to face's color
|
static String |
createCubeRepForAlgorithm(ICube cube)
Creates the string representation of the cube.
|
static int |
forceSolveCube(int attempts)
Solve the cube to standard pattern (each face different color).
|
static int |
forceSolveCube(int attempts,
String pattern)
Solves the cube.
|
private static void |
handleSolution(ICube cube,
List<Move> moves)
Handle cube solution given the required moves
|
static int |
solveCube()
Deprecated.
Use forceSolveCube(0)
|
private static int |
solveCube(String pattern)
Solve the cube
|
public static int forceSolveCube(int attempts,
String pattern)
attempts - Number of attempts to solve the cubepattern - The desired cube patternpublic static int forceSolveCube(int attempts)
attempts - Number of attempts to solve the cubeprivate static int solveCube(String pattern)
pattern - The desired cube patternPatternMenu,
TwoPhase@Deprecated public static int solveCube()
solveCube(String pattern)private static void handleSolution(ICube cube, List<Move> moves)
cube - The rubik's cubemoves - The required moves to the selected patternprivate static Color convertOrientation2FaceColor(Orientation orientation)
orientation - The cube's orientationpublic static String createCubeRepForAlgorithm(ICube cube)
cube parameter definition
Conversion fails when there are two center facelets with the same colorcube - - the cube to create representation for