diff --git a/Pathfinding/Pathfinder.cs b/Pathfinding/Pathfinder.cs index c649cc0..c165268 100644 --- a/Pathfinding/Pathfinder.cs +++ b/Pathfinding/Pathfinder.cs @@ -62,12 +62,9 @@ public class Pathfinder { firstFound = DateTime.Now - startCalc; found = true; + Console.WriteLine($"First: {firstFound} Multiplied by {extraTime}: {firstFound.Multiply(extraTime)}"); } maxGscore = gScore[goalNode]; - /* - int removed = openSetfScore.Remove(gScore.Where(item => item.Value > maxGscore) - .ToDictionary(item => item.Key, item => item.Value).Keys); - Console.WriteLine($"Removed {removed}");*/ } if (found && DateTime.Now - startCalc > firstFound.Multiply(extraTime))