Project

General

Profile

« Previous | Next » 

Revision 7cff8fed

Added by Leszek Koltunski about 1 year ago

minor

View differences:

src/main/java/org/distorted/objectlib/algsolvers/PhasedSolver.java
42 42

  
43 43
  private final Phase[] mPhases;
44 44
  private final int mNumPhases;
45
  private PhaseSolutionFinder mFinder;
46

  
45
  private final PhaseSolutionFinder mFinder;
47 46
  private final Static4D[] mObjectQuats;
48 47
  private final float[][] mPositions;
49 48

  
src/main/java/org/distorted/objectlib/main/TwistyObjectSolved.java
472 472
    }
473 473

  
474 474
///////////////////////////////////////////////////////////////////////////////////////////////////
475
// ATM this works only for puzzles which do not have clearly defined external walls - i.e. do not
476
// have flat surfaces perpendicular to some axis passing through the center of the puzzle as their
477
// external walls. I.e: the Penrose Cubes and the Masterball.
478
// And in case of the 3 Mirror objects ( MirrorJing, MirrorPyraminx, MirrorSkewb) - TBH I am not sure
479
// if those three couldn't be the default.
480
// Maybe they could right now, but the default can get it wrong if the 'surfaces' (all cuts at the
481
// initial state multiplied by all the quats) are too close to each other --> maybe if the change the
482
// 'offset' vector of the Mirrors, the solved state detection will suddenly stop working. Ergo: this
483
// is much safer.
475 484

  
476 485
  private boolean isSolved0(TwistyObjectCubit[] cubits)
477 486
    {
......
573 582
    }
574 583

  
575 584
///////////////////////////////////////////////////////////////////////////////////////////////////
585
// The main solver - works by checking if all external walls of the puzzle are monochromatic.
586
// Almost all puzzles use this one.
576 587

  
577 588
  private boolean isSolved2(TwistyObjectCubit[] cubits)
578 589
    {

Also available in: Unified diff