astar-algorithm-cpp icon indicating copy to clipboard operation
astar-algorithm-cpp copied to clipboard

Bug in c# code

Open gorodovoy opened this issue 5 years ago • 2 comments

In c# code in AStarPathfinder.SortedAddToOpenList() field "inserted" is always "false".

gorodovoy avatar Feb 09 '20 19:02 gorodovoy

cc/ @ScaryG

justinhj avatar Feb 09 '20 20:02 justinhj

Second bug in C# :

In "GetSuccessors(...)" method instead NodePosition parentPos = new NodePosition(0, 0); we should use NodePosition parentPos = new NodePosition(-1, -1); Because (0, 0) is a real position on the map, and we can not use (0, 0) as position of nonexistent parent.

gorodovoy avatar Feb 15 '20 16:02 gorodovoy

Thank you @gorodovoy If you fix the other one we can close the issue :)

justinhj avatar Oct 14 '23 18:10 justinhj

Moved cs to a new repo, see readme. Closing this issue

justinhj avatar Oct 14 '23 18:10 justinhj