Project

General

Profile

« Previous | Next » 

Revision 736bbd74

Added by Leszek Koltunski over 4 years ago

Correct Dino row chances ( the middle row should never move! )

View differences:

src/main/java/org/distorted/objects/RubikDino.java
358 358

  
359 359
  public float[] getRowChances()
360 360
    {
361
    int size = getSize();
362
    float[] chances = new float[size];
361
    float[] chances = new float[3];
363 362

  
364
    for(int i=0; i<size; i++)
365
      {
366
      chances[i] = (i+1.0f) / size;
367
      }
363
    chances[0] = 0.5f;
364
    chances[1] = 0.5f;
365
    chances[2] = 1.0f;
368 366

  
369 367
    return chances;
370 368
    }

Also available in: Unified diff