public class Corner
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
hasColor(ColorsEnum color)
Checks if corner has an element with given color.
|
boolean |
onFace(FacesEnum face)
Checks if corner is on given face.
|
public boolean hasColor(ColorsEnum color)
color
- Color of elementpublic boolean onFace(FacesEnum face)
face
- Face of the Rubik's Cube.