예제 #1
0
        public void TestAstarPoint9()
        {
            Node           endPosition = new Node(1, 7);
            PathMapBuilder builder     = new PathMapBuilder(endPosition, false);
            var            result      = builder.Execute(PathMapBuilder.Searcher.AStar);

            Assert.AreEqual(14, result[PathMapBuilder.Searcher.AStar].Count);
        }
예제 #2
0
        public void TestJumpPoint7()
        {
            Node           endPosition = new Node(5, 7);
            PathMapBuilder builder     = new PathMapBuilder(endPosition, false);
            var            result      = builder.Execute(PathMapBuilder.Searcher.JumpPointSearch);

            Assert.AreEqual(14, result[PathMapBuilder.Searcher.JumpPointSearch].Count);
        }
예제 #3
0
        public void TestBestFirstPoint8()
        {
            Node           endPosition = new Node(7, 5);
            PathMapBuilder builder     = new PathMapBuilder(endPosition, false);
            var            result      = builder.Execute(PathMapBuilder.Searcher.BestFirstSearch);

            Assert.AreEqual(14, result[PathMapBuilder.Searcher.BestFirstSearch].Count);
        }
예제 #4
0
        public void TestBreadthFirstPoint5()
        {
            Node           endPosition = new Node(7, 2);
            PathMapBuilder builder     = new PathMapBuilder(endPosition, false);
            var            result      = builder.Execute(PathMapBuilder.Searcher.BreadhFirsSearch);

            Assert.AreEqual(11, result[PathMapBuilder.Searcher.BreadhFirsSearch].Count);
        }