internal RubixCubeTopFace MoveToTop()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateAnticlockwiseThroughFront(newFace);
            return(newFace);
        }
Example #2
0
        internal RubixCubeTopFace Clone()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            Clone(newFace);
            return(newFace);
        }
Example #3
0
        internal RubixCubeTopFace RotateAnticlockwise()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateAntiClockwiseThroughCenterCube(newFace);
            return(newFace);
        }
Example #4
0
        internal RubixCubeTopFace MoveToTop()
        {
            RubixCubeTopFace newFace = new RubixCubeTopFace();

            RotateClockwiseThroughLeft(newFace);
            return(newFace);
        }
 public RubixCubeLeftFaceRotation(RubixCube cube, RubixCubeLeftFace newLeftFace)
 {
     this.newLeftFace = newLeftFace;
     oldFrontFace     = cube.FrontFace;
     newFrontFace     = oldFrontFace.Clone();
     oldTopFace       = cube.TopFace;
     newTopFace       = oldTopFace.Clone();
     oldBottomFace    = cube.BottomFace;
     newBottomFace    = oldBottomFace.Clone();
     oldBackFace      = cube.BackFace;
     newBackFace      = oldBackFace.Clone();
     UpdateFaces();
     RemoveOldCubes();
     AddNewCubes();
 }