Revision 6cf89a3e
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objects/TwistyUltimate.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import org.distorted.helpers.ObjectShape; |
25 | 25 |
import org.distorted.helpers.ObjectSticker; |
26 |
import org.distorted.helpers.ScrambleStateGraph;
|
|
26 |
import org.distorted.helpers.ScrambleState; |
|
27 | 27 |
import org.distorted.library.main.DistortedEffects; |
28 | 28 |
import org.distorted.library.main.DistortedTexture; |
29 | 29 |
import org.distorted.library.mesh.MeshSquare; |
... | ... | |
235 | 235 |
|
236 | 236 |
private int mCurrState; |
237 | 237 |
private int mIndexExcluded; |
238 |
private final ScrambleStateGraph[] mStates;
|
|
238 |
private final ScrambleState[] mStates; |
|
239 | 239 |
|
240 | 240 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
241 | 241 |
|
... | ... | |
246 | 246 |
|
247 | 247 |
int[] tmp = {0,-1,0, 0,1,0, 1,-1,0, 1,1,0 }; |
248 | 248 |
|
249 |
mStates = new ScrambleStateGraph[]
|
|
249 |
mStates = new ScrambleState[] |
|
250 | 250 |
{ |
251 |
new ScrambleStateGraph( new int[][] {tmp,tmp,tmp,tmp} )
|
|
251 |
new ScrambleState( new int[][] {tmp,tmp,tmp,tmp} ) |
|
252 | 252 |
}; |
253 | 253 |
} |
254 | 254 |
|
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.