Package | Description |
---|---|
enums | |
solver |
Modifier and Type | Method and Description |
---|---|
static ColorsEnum |
ColorsEnum.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorsEnum[] |
ColorsEnum.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private ColorsEnum |
Edge.color1
First color of the edge.
|
private ColorsEnum |
Corner.color1
First color of the corner.
|
private ColorsEnum |
Edge.color2
Second color of the edge.
|
private ColorsEnum |
Corner.color2
Second color of the corner.
|
private ColorsEnum |
Corner.color3
Third color of the corner.
|
protected ColorsEnum[][] |
RubiksCube.elements
Array that contains the colors of each element.
|
Modifier and Type | Method and Description |
---|---|
protected ColorsEnum |
RubiksCube.backColor()
Returns current color of back face.
|
private ColorsEnum |
CubeScanner.convertToColorsEnum(float[] sample)
Identifies color of one element by analyzing its RGB-values.
|
protected ColorsEnum |
RubiksCube.downColor()
Returns color of down face (this is static).
|
protected ColorsEnum |
RubiksCube.frontColor()
Returns current color of front face.
|
protected ColorsEnum |
RubiksCube.leftColor()
Returns current color of left face.
|
protected ColorsEnum |
RubiksCube.rightColor()
Returns current color of right face.
|
private ColorsEnum[] |
CubeScanner.scanTopFace()
Rotates cube while scanning its elements on top face.
|
protected ColorsEnum |
RubiksCube.upColor()
Returns color of up face (this is static).
|
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 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.
|
boolean |
Edge.hasColor(ColorsEnum color)
Checks if edge has an element with given color.
|
boolean |
Corner.hasColor(ColorsEnum color)
Checks if corner has an element with given color.
|
protected void |
RubiksCube.setTopFace(ColorsEnum[] scannedFace)
Writes colors from given array into top face of cube-representation (the elememts-array).
|
Constructor and Description |
---|
Corner(ColorsEnum[][] cube,
FacesEnum face1,
int index1,
FacesEnum face2,
int index2,
FacesEnum face3,
int index3)
Constructor that reads faces of the corner from parameters and colors of the corner from the elements array of the Rubik's Cube.
|
Edge(ColorsEnum[][] cube,
FacesEnum face1,
int index1,
FacesEnum face2,
int index2)
Constructor that reads
Constructor that reads faces of the edge from parameters and colors of the edge from the elements array of the Rubik's Cube.
|