NeverFlight / CS435-Project2-Part2

0 stars 0 forks source link

Comment 8 #4

Open ak2253 opened 4 years ago

ak2253 commented 4 years ago

The astar method needs to also return null/empty arraylist in case a valid path was not found from sourcenode to destnode. so replace the break in: https://github.com/NeverFlight/CS435-Project2-Part2/blob/d2214e6197e00763e03a18aacb510f210ff396cb/src/com/cs435/part2/Main.java#L227-L228 with: return null;

NeverFlight commented 4 years ago

Good point. I will address it on the new push commit. https://github.com/NeverFlight/CS435-Project2-Part2/commit/41835259a7b23324f577c734f12a82c42b501493