예제 #1
0
파일: UnitTesting.cs 프로젝트: r3db/8Puzzle
        // Done!
        private static void HeuristicHelper(string current, string goal, int value)
        {
            EightPuzzle pCurrent = EightPuzzleFactory.Create(current);
            EightPuzzle pGoal    = EightPuzzleFactory.Create(goal);

            int h = pCurrent.GetHeuristic(pCurrent, pGoal);

            Assert.AreEqual(value, h);
        }