예제 #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;
 }