Revision 6cf89a3e
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objects/TwistyBandaged2Bar.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.content.res.Resources; |
23 | 23 |
|
24 |
import org.distorted.helpers.ScrambleStateGraph;
|
|
24 |
import org.distorted.helpers.ScrambleState; |
|
25 | 25 |
import org.distorted.library.main.DistortedEffects; |
26 | 26 |
import org.distorted.library.main.DistortedTexture; |
27 | 27 |
import org.distorted.library.mesh.MeshSquare; |
... | ... | |
67 | 67 |
{ |
68 | 68 |
super(size, quat, texture, mesh, effects, moves, ObjectList.BAN2, res, scrWidth); |
69 | 69 |
|
70 |
mStates = new ScrambleStateGraph[]
|
|
70 |
mStates = new ScrambleState[] |
|
71 | 71 |
{ |
72 |
new ScrambleStateGraph( new int[][] { {} , {0,1,1, 0,-1,1, 2,1,2, 2,-1,2}, {} }),
|
|
73 |
new ScrambleStateGraph( new int[][] { {0,-1,1, 0,1,1, 0,2,1, 2,-1,1, 2,1,1, 2,2,1}, {0,2,1, 2,2,1} , {} }),
|
|
74 |
new ScrambleStateGraph( new int[][] { {}, {0,2,2, 2,2,2} , {0,-1,2, 0,1,2, 0,2,2, 2,-1,2, 2,1,2, 2,2,2} })
|
|
72 |
new ScrambleState( new int[][] { {} , {0,1,1, 0,-1,1, 2,1,2, 2,-1,2}, {} }), |
|
73 |
new ScrambleState( new int[][] { {0,-1,1, 0,1,1, 0,2,1, 2,-1,1, 2,1,1, 2,2,1}, {0,2,1, 2,2,1} , {} }), |
|
74 |
new ScrambleState( new int[][] { {}, {0,2,2, 2,2,2} , {0,-1,2, 0,1,2, 0,2,2, 2,-1,2, 2,1,2, 2,2,2} }) |
|
75 | 75 |
}; |
76 | 76 |
} |
77 | 77 |
|
Also available in: Unified diff
Introduce pseudorandom balancing into scrambling in case of the two Dinos (from now on, the more times a particular (ax,layer) combination has been chosen already in the scrambling sequence, the less likely it is to be chosen next).
Fix Dino6 - isSolved(). Sadly, it cannot be the geeneric function - it needs to be another special case.