Project

General

Profile

« Previous | Next » 

Revision e4733ed7

Added by Leszek Koltunski about 2 years ago

New, generic bandaged 3x3 class 'TwistyBandagedAbstract'.

Now, (almost!) any bandaged 3x3 can be created by extending this class and implementing one abstract method 'getPositions()'. Almost, because there's still one restriction: currently all cubits need to be one of the 5 allowed types: 1x1x1, 2x1x1, 3x1x1, 2x2x1, 2x2x2.

Still, two missing 'TODOs' need to be implemented for truly 'any' bandaged cube to be supported.

View differences:

src/main/java/org/distorted/solvers/ImplementedSolversList.java
19 19

  
20 20
package org.distorted.solvers;
21 21

  
22
import org.distorted.objectlib.main.ObjectConstants;
22
import org.distorted.objectlib.main.ObjectSignatures;
23 23

  
24 24
///////////////////////////////////////////////////////////////////////////////////////////////////
25 25

  
26 26
public enum ImplementedSolversList
27 27
{
28
  CUBE3 (ObjectConstants.CUBE_3),
28
  CUBE3 (ObjectSignatures.CUBE_3),
29 29
  ;
30 30

  
31 31
  public static final int NUM_OBJECTS = values().length;

Also available in: Unified diff