public void RotateRightFaceToTopFace() { RubixCubeFrontFace newFrontFace = FrontFace.RotateAnticlockwise(); RubixCubeTopFace newTopFace = RightFace.MoveToTop(); RubixCubeLeftFace newLeftFace = TopFace.MoveToLeft(); RubixCubeRightFace newRightFace = BottomFace.MoveToRight(); RubixCubeBottomFace newBottomFace = LeftFace.MoveToBottom(); RubixCubeBackFace newBackFace = BackFace.RotateAnticlockwise(); FrontFace = newFrontFace; TopFace = newTopFace; LeftFace = newLeftFace; RightFace = newRightFace; BottomFace = newBottomFace; BackFace = newBackFace; Validate(); }
public void RotateFrontFaceAnticlockwise() { RotateFrontFace(FrontFace.RotateAnticlockwise()); }