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; }
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; }