private void Validate() { RubixCubeFaceValidationResult validation = new RubixCubeFaceValidationResult(); FrontFace.Validate(validation); TopFace.Validate(validation); LeftFace.Validate(validation); RightFace.Validate(validation); BottomFace.Validate(validation); BackFace.Validate(validation); ValidateIdenticalCubes(validation); validation.FinishValidation(); }
public void RotateBottomFaceToFrontFace() { RubixCubeFrontFace newFrontFace = BottomFace.MoveToFront(); RubixCubeTopFace newTopFace = FrontFace.MoveToTop(); RubixCubeLeftFace newLeftFace = LeftFace.RotateClockwise(); RubixCubeRightFace newRightFace = RightFace.RotateClockwise(); RubixCubeBottomFace newBottomFace = BackFace.MoveToBottom(); RubixCubeBackFace newBackFace = TopFace.MoveToBack(); FrontFace = newFrontFace; TopFace = newTopFace; LeftFace = newLeftFace; RightFace = newRightFace; BottomFace = newBottomFace; BackFace = newBackFace; Validate(); }
public void RotateTopFaceAnticlockwise() { RotateTopFace(TopFace.RotateAnticlockwise()); }
public void RotateTopFaceClockwise() { RotateTopFace(TopFace.RotateClockwise()); }