示例#1
0
        public void Solve5x5()
        {
            var board  = new SquareBoard(5);
            var game   = new Game(new NotifiableGameView(), board);
            var solver = new PuzzleSolver(board);

            var solutionPath = solver.GetMovesToSolution();

            Assert.IsTrue(solutionPath.Count > 0, "The puzzle was already solved");

            ApplySolutionPathToGame(game, solutionPath);

            Assert.IsTrue(game.IsCompleted());
        }