Example #1
0
  public static Algorithme easy(String stringalgo) throws Throwable {
    FausseDetection fake;
    Algorithme algo = new Algorithme(stringalgo);
    fake = new FausseDetection(algo);

    Cube leCube = fake.detecter(null, null, null, null, null, null);
    Cube test = Cube.creerCube(leCube.toFace());

    /* RĂ©solution */
    ResolutionDuCube er2 = new EasyResolution(test);
    Algorithme Soluce2 = new Algorithme();
    Soluce2 = er2.trouverSolution();

    return Soluce2;
  }
Example #2
0
  public static Algorithme medium(String stringalgo) throws Throwable {
    FausseDetection fake;
    Algorithme algo = new Algorithme(stringalgo);
    fake = new FausseDetection(algo);

    Cube leCube = fake.detecter(null, null, null, null, null, null);
    Cube test = Cube.creerCube(leCube.toFace());

    /* RĂ©solution */
    Algorithme Soluce = new Algorithme();
    // EasyResolution er = new EasyResolution(leCube);
    ResolutionDuCube er = new MediumResolution(leCube);
    Soluce = er.trouverSolution();

    return Soluce;
  }