Package | Description |
---|---|
solver |
Modifier and Type | Method and Description |
---|---|
private boolean |
CubeAlgorithm.downEdgeOriented(RubiksCube cube,
ColorsEnum color)
Checks if edge that needs to be moved to second layer is correctly oriented so that it can be moved.
|
private boolean |
CubeAlgorithm.edgesInDownLayer(RubiksCube cube)
Checks if there are edges in third layer that need to be moved to second layer.
|
private Corner |
CubeAlgorithm.findCorner(RubiksCube cube,
ColorsEnum color1,
ColorsEnum color2,
ColorsEnum color3)
Searches through all corners of given cube-representation and returns the Corner object with the three specified colors.
|
private Edge |
CubeAlgorithm.findEdge(RubiksCube cube,
ColorsEnum color1,
ColorsEnum color2)
Searches through all edges of given cube-representation and returns the Edge object with the two specified colors.
|
private void |
CubeAlgorithm.firstLevelCorners(RubiksCube cube)
Locates the four corners of first level (top layer of the Rubik's Cube) and moves them correctly oriented onto their positions.
|
private void |
CubeAlgorithm.firstLevelEdges(RubiksCube cube)
Locates the four edges of first level (top layer of the Rubik's Cube) and moves them correctly oriented onto their positions.
|
private int |
CubeAlgorithm.llCornerCount(RubiksCube cube)
Counts how many corners of last layer are incorrectly oriented.
|
private boolean |
CubeAlgorithm.llCornersPlaced(RubiksCube cube)
Checks if corners of last layer are on their correct positions (they don't need to be oriented correctly yet).
|
private int |
CubeAlgorithm.llEdgeCount(RubiksCube cube)
Counts how many edges of last layer are correctly oriented (they don't need to be on the correct position yet).
|
private int |
CubeAlgorithm.llEdgeCount2(RubiksCube cube)
Counts how many edges are correctly positioned.
|
private void |
CubeAlgorithm.moveCorner(RubiksCube cube,
Corner corner)
Applies maneuver to cube-representation, after which given corner is correctly oriented on front-right-up position.
|
private void |
CubeAlgorithm.moveEdge(RubiksCube cube,
Edge edge)
Applies maneuver to cube-representation, after which given edge is correctly oriented on front-top-up position.
|
private void |
CubeAlgorithm.orientLLCorners(RubiksCube cube)
Orients (rotates) corners of last layer.
|
private void |
CubeAlgorithm.orientLLEdges(RubiksCube cube)
Orients edges on last layer.
|
private void |
CubeAlgorithm.permuteLLCorners(RubiksCube cube)
Permutes corners on last layer until all corners are correctly positioned.
|
private void |
CubeAlgorithm.permuteLLedges(RubiksCube cube)
Permutes edges of last layer until all elements on last layer are correctly colored.
|
protected void |
CubeScanner.scanCube(RubiksCube cube)
Scans complete cube by using scanTopFace()-method and writes recognized colors as well as raw values to RubiksCube object.
|
private void |
CubeAlgorithm.secondLevelEdges(RubiksCube cube)
Moves edges of second layer onto their correct positions.
|
private void |
CubeScanner.toFile(java.lang.String fileName,
RubiksCube cube)
Writes raw RGB-values and mean RGB-value to file (used for debugging).
|