Package | Description |
---|---|
enums | |
solver |
Modifier and Type | Method and Description |
---|---|
static FacesEnum |
FacesEnum.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FacesEnum[] |
FacesEnum.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private FacesEnum |
Edge.face1
Fist face that the edge is on.
|
private FacesEnum |
Corner.face1
First face that the corner is on.
|
private FacesEnum |
Edge.face2
Second face that the edge is on.
|
private FacesEnum |
Corner.face2
Second face that the corner is on.
|
private FacesEnum |
Corner.face3
Third face that the corner is on.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Edge.onFace(FacesEnum face)
Checks if edge is on given face.
|
boolean |
Corner.onFace(FacesEnum face)
Checks if corner is on given face.
|
private void |
RubiksCube.turnFace(FacesEnum face)
Helper-method for applying clockwise rotations to a cube's face.
|
private void |
RubiksCube.turnFaceInverted(FacesEnum face)
Helper-method for applying counter clockwise rotations to a cube's face.
|
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.
|