示例#1
0
        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();
        }
示例#2
0
 public void RotateFrontFaceAnticlockwise()
 {
     RotateFrontFace(FrontFace.RotateAnticlockwise());
 }