Project

General

Profile

« Previous | Next » 

Revision 3e6133f0

Added by Leszek Koltunski 11 months ago

Progress with scrambling a BandagedObjectPyraminx. Still doesn't work though.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyBandagedPyraminx.java
69 69
  private int getType(float[] pos, int numLayers)
70 70
    {
71 71
    if( pos.length>3 ) return OTHER;
72
    int variant = FactoryBandagedPyraminx.getElementVariant(numLayers,pos[1]);
73
    return variant==0 ? OCT_1 : TET_1;
72
    boolean octa = FactoryBandagedPyraminx.isOctahedron(numLayers,pos[1]);
73
    return octa ? OCT_1 : TET_1;
74 74
    }
75 75

  
76 76
///////////////////////////////////////////////////////////////////////////////////////////////////
......
124 124
    }
125 125

  
126 126
///////////////////////////////////////////////////////////////////////////////////////////////////
127
// Computing scramble states of many a bandaged cubes takes way too long time and too much space.
127
// Computing scramble states of many a bandaged objects takes way too long time and too much space.
128 128
// Return null here and turn to construction of scramble tables just-in-time (scrambleType=2)
129 129

  
130 130
  public int[][] getScrambleEdges()

Also available in: Unified diff