public void RotateRightFaceToFrontFace() { RubixCubeFrontFace newFrontFace = RightFace.MoveToFront(); RubixCubeTopFace newTopFace = TopFace.RotateClockwise(); RubixCubeLeftFace newLeftFace = FrontFace.MoveToLeft(); RubixCubeRightFace newRightFace = BackFace.MoveToRight(); RubixCubeBottomFace newBottomFace = BottomFace.RotateClockwise(); RubixCubeBackFace newBackFace = LeftFace.MoveToBack(); FrontFace = newFrontFace; TopFace = newTopFace; LeftFace = newLeftFace; RightFace = newRightFace; BottomFace = newBottomFace; BackFace = newBackFace; Validate(); }
public void RotateTopFaceClockwise() { RotateTopFace(TopFace.RotateClockwise()); }