Esempio n. 1
0
        static void Main(string[] args)
        {
            var cube = new CubeBuilder(1).BuildCube();
             var printer = new CubePrinter(cube);
             var query = new CubeQuery(cube);
             var rotator = new CubeRotator(query);
             using (var sw = File.CreateText("cube.txt"))
             {
            printer.PrintAsCutout(sw);
            cube.Print("cube1.txt");
            //rotator.RotateOuterLayer(Directions.Front, Directions.Clockwise);
            //cube.Print("cube2.txt");
            //printer.PrintAsCutout(sw);
            //rotator.RotateOuterLayer(Directions.Front, Directions.CounterClockwise);
            //printer.PrintAsCutout(sw);
            //rotator.RotateOuterLayer(Directions.Right, Directions.CounterClockwise);
            //printer.PrintAsCutout(sw);

            //_cubeRandomizer.Randomize(rotator, 20);
            Hardest(rotator);
            cube.Print("cube3.txt");
            cube.PrintAsCutout("cubeasCutout0.txt");
            Time(1, () => Solve(rotator, cube, query));
            cube.Print("cube5.txt");
            printer.PrintAsCutout(sw);
             }
        }
Esempio n. 2
0
 public static void PrintAsCutout(this Cube cube, string path)
 {
     var printer = new CubePrinter(cube);
      using (var sw = File.CreateText(path))
     printer.PrintAsCutout(sw);
 }