Project

General

Profile

« Previous | Next » 

Revision 54860114

Added by Leszek Koltunski over 1 year ago

Masterball: correct scrambling (we must begin with a horizontal move)

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyMasterball.java
121 121
                  3,-3,1, 3,-2,1, 3,-1,1, 3,1,1, 3,2,1, 3,3,1, 3,4,1
122 122
                };
123 123
      int[] V2= { 0,1,2, 1,1,2 };
124
      int[] V3= { 0,1,3, 1,1,3 };
124
      int[] V0= { 0,1,0, 1,1,0 };
125 125

  
126 126
      mStates = new ScrambleState[]
127 127
          {
128
          new ScrambleState( new int[][] {    H,  V2,  V2,  V2,  V2 } ),  //  0: beginning
128
          new ScrambleState( new int[][] {    H,null,null,null,null } ),  //  0: beginning; two last were vertical
129 129
          new ScrambleState( new int[][] { null,  V2,  V2,  V2,  V2 } ),  //  1: last was horizontal (i.e. along (0,1,0))
130
          new ScrambleState( new int[][] {    H,  V3,  V3,  V3,  V3 } ),  //  2: last was vertical and forelast horizontal
131
          new ScrambleState( new int[][] {    H,null,null,null,null } ),  //  3: two last were vertical
130
          new ScrambleState( new int[][] {    H,  V0,  V0,  V0,  V0 } ),  //  2: last was vertical and forelast horizontal
132 131
          };
133 132
      }
134 133

  

Also available in: Unified diff