-
Notifications
You must be signed in to change notification settings - Fork 0
Errors in Yonaba's JPS #2
Comments
I noticed that as well, but I wouldn't really see this as a bug. JPS in general only works when diagonal jumps are allowed, so the "bug" for me is not that it's not working, but rather that there's no warning/error message or something like that. |
You are right it works. But it works like AStar. There are no jumps. But there should be. I think I see at least three errors, whereof two are bugs in my eyes and one is just a "Unterlassung". Will write it into the lines (not right now but at least this week). |
Made the comments into the initial commit.
Have to think about that again. |
This is a question of definition. In case of diagonal moves are forbidden, I have to perfom a search to the left and right in case of a vertical/horizontal move (with diagonal moves this is not necessary). Then it should work again. |
Yeah. Looking at the picture, I realise two things:
|
The algorithm does not know how the map looks like, it comes from the start and searches for a path. It also does not know where the area with wheat is narrow to pass it. |
The function jump of Yonaba'y JPS contains some errors when allowDiagonal is false. It will then not jump at all.
The text was updated successfully, but these errors were encountered: