Пример #1
0
        public void TestCase()
        {
            var game = new Puzzle(3);
            var solver = new Solver(game);
            var solution = solver.Solution();

            foreach (var step in solution)
            {
                Console.WriteLine(string.Format("Step is #{0}", step.Direction));
            }
        }
Пример #2
0
 public Solver(Puzzle game)
 {
     Game = game;
 }
Пример #3
0
 public Solver(Puzzle game)
 {
     Game = game;
 }