コード例 #1
0
        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();
        }
コード例 #2
0
 public void RotateTopFaceClockwise()
 {
     RotateTopFace(TopFace.RotateClockwise());
 }