From a5f272dfb9895154e95f7d545cf6812acf23cd0c Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 15 May 2023 13:16:41 +0200 Subject: [PATCH] Removed commented Code Added Logging to see progress --- Pathfinding/Pathfinder.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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))