Project

General

Profile

« Previous | Next » 

Revision 277401c0

Added by Leszek Koltunski over 1 year ago

Pyraminx Duo solver: solutions (coming from unpacked DB recreated each time) seem to be working.

View differences:

src/main/java/org/distorted/solvers/SolverPyraminxDuo.java
34 34

  
35 35
  private static final int ERROR_CORNERS_CANNOT   = -11;
36 36

  
37

  
38 37
///////////////////////////////////////////////////////////////////////////////////////////////////
39 38

  
40 39
  private boolean cornerEqual(int[] corner, int c1, int c2, int c3)
......
281 280

  
282 281
///////////////////////////////////////////////////////////////////////////////////////////////////
283 282

  
284
  public String solution(int index, Resources res)
283
  public int[][] solution(int index, Resources res)
285 284
    {
286 285
    TablebasesPyraminxDuo tb = new TablebasesPyraminxDuo();
287 286
    tb.createTablebase();
288

  
289
    return "";
287
    return tb.solution(index);
290 288
    }
291 289
}  
292 290

  

Also available in: Unified diff