protected void RotateAnticlockwiseThroughTop(RubixCubeFrontOrBackFace newFace)
 {
     newFace.TopLeftCube     = BackTopCube;
     newFace.TopCube         = TopCube;
     newFace.TopRightCube    = FrontTopCube;
     newFace.LeftCube        = BackCube;
     newFace.CenterCube      = CenterCube;
     newFace.RightCube       = FrontCube;
     newFace.BottomLeftCube  = BackBottomCube;
     newFace.BottomCube      = BottomCube;
     newFace.BottomRightCube = FrontBottomCube;
 }
 protected void RotateAntiClockwiseThroughCenterCube(RubixCubeFrontOrBackFace newFace)
 {
     newFace.TopLeftCube     = TopRightCube;
     newFace.TopCube         = RightCube;
     newFace.TopRightCube    = BottomRightCube;
     newFace.LeftCube        = TopCube;
     newFace.CenterCube      = CenterCube;
     newFace.RightCube       = BottomCube;
     newFace.BottomLeftCube  = TopLeftCube;
     newFace.BottomCube      = LeftCube;
     newFace.BottomRightCube = BottomLeftCube;
 }
Exemple #3
0
 protected void RotateClockwiseThroughLeft(RubixCubeFrontOrBackFace newFace)
 {
     newFace.TopLeftCube     = FrontLeftCube;
     newFace.TopCube         = FrontCube;
     newFace.TopRightCube    = FrontRightCube;
     newFace.LeftCube        = LeftCube;
     newFace.CenterCube      = CenterCube;
     newFace.RightCube       = RightCube;
     newFace.BottomLeftCube  = BackLeftCube;
     newFace.BottomCube      = BackCube;
     newFace.BottomRightCube = BackRightCube;
 }
 protected void Clone(RubixCubeFrontOrBackFace newFace)
 {
     newFace.TopLeftCube     = TopLeftCube;
     newFace.TopCube         = TopCube;
     newFace.TopRightCube    = TopRightCube;
     newFace.LeftCube        = LeftCube;
     newFace.CenterCube      = CenterCube;
     newFace.RightCube       = RightCube;
     newFace.BottomLeftCube  = BottomLeftCube;
     newFace.BottomCube      = BottomCube;
     newFace.BottomRightCube = BottomRightCube;
 }