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); }
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); }
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); }
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); }