Commits

Robin Harper  committed d651677

lowered the max steps to 1000

  • Participants
  • Parent commits bad93d0

Comments (0)

Files changed (3)

File AstarPath/AstarPathfinder.cs

     public class AstarPathfinder
     {
         private const double Alpha = 0.4999;
-        private const double DefaultCost = 4.5567;
-        private const int MaxEstimatedPathLength = 2000;
+        private const double DefaultCost = 1.0;
+        private const int MaxEstimatedPathLength = 1000;
         private readonly int _directionalMove = 1;
         private const double Nudge = DefaultCost / MaxEstimatedPathLength;
         public readonly Grid Grid;
 
         public readonly PathfinderUtilities.PathfinderType CurrentPathfinderType;
 
-        private readonly int _size = 0;
-
         /// <summary>
         /// 
         /// </summary>
             BitmapHeight = map.Height;
             BitmapWidth = map.Width;
             CurrentPathfinderType = type;
-            _size = size;
-
             Grid = PathfinderUtilities.CreateGrid(map, size);
 
             switch (type)

File AstarPath/bin/Debug/AstarPath.dll

Binary file modified.

File PathTester/bin/Debug/AstarPath.dll

Binary file modified.