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