Project

General

Profile

« Previous | Next » 

Revision bb490017

Added by Leszek Koltunski over 3 years ago

Fix a long standing bug in the way we detect if a Cube or Pyraminx is solved. The reason for all those 'impossible' records being submitted.

View differences:

src/main/java/org/distorted/objects/TwistyCube.java
353 353
                 row1 = computeRow(x1,y1,z1,i);
354 354
                 row2 = computeRow(x2,y2,z2,i);
355 355

  
356
                 if( (row1==0 && row2==0) || (row1==lastLayer || row2==lastLayer) ) return true;
356
                 if( (row1==0 && row2==0) || (row1==lastLayer && row2==lastLayer) ) return true;
357 357
                 }
358 358
               return false;
359 359

  

Also available in: Unified diff