Project

General

Profile

« Previous | Next » 

Revision 6cf89a3e

Added by Leszek Koltunski over 2 years ago

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.

View differences:

src/main/java/org/distorted/objects/TwistyBandagedFused.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;
......
74 74

  
75 75
    int[] tmp = {0,-1,0, 0,1,0, 0,2,0, 2,-1,0, 2,1,0, 2,2,0};
76 76

  
77
    mStates = new ScrambleStateGraph[]
77
    mStates = new ScrambleState[]
78 78
      {
79
      new ScrambleStateGraph( new int[][] {tmp,tmp,tmp} )
79
      new ScrambleState( new int[][] {tmp,tmp,tmp} )
80 80
      };
81 81
    }
82 82

  

Also available in: Unified diff