Project

General

Profile

« Previous | Next » 

Revision 9ba7f3f6

Added by Leszek Koltunski over 1 year ago

Move scrambling to a new model where there are spearete scrambling 'algorithms' and 'edges' of the scrambling graph.
Now each edge can contain a whole algorithm, i.e. a sequence of moves leading from state to state, which permits construction of scrambling for more complicated bandaged objects such as the AI cube.

Unchecked as of yet, probably still a lot of bugs.

View differences:

src/main/java/org/distorted/objectlib/scrambling/ScrambleStateBandaged3x3.java
258 258
    }
259 259

  
260 260
///////////////////////////////////////////////////////////////////////////////////////////////////
261
// broken when we were converting to the new format of ScrambleState.
261 262

  
262 263
  private ScrambleState produceScrambleState()
263 264
    {
265
    /*
264 266
    int[] xMoves = getMoves(0);
265 267
    int[] yMoves = getMoves(9);
266 268
    int[] zMoves = getMoves(18);
......
268 270
    int[][] moves = { xMoves,yMoves,zMoves };
269 271

  
270 272
    return new ScrambleState( moves );
273
    */
274

  
275
    return null;
271 276
    }
272 277

  
273 278
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff