Jump to content
  • Advertisement
Sign in to follow this  
Daniel Miller

my A* path: searching too much?

This topic is 4813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

#############
#           #
#     #     #
#     #     #
#     #     #
# :   #   : #
#  :  #  :  #
#   : # :   #
#    :#:    #
#     :     #
#           #
#############
#############
#     @     #
#   @@#@    #
# @@@@# @   #
#@@@@@#     #
#@@@@@#   : #
#@@@@@#  :  #
# @@@@# @   #
#   @@#@    #
#     @     #
#           #
#############
[Sneftel gave me the humiliatingly obvious answer] The top shows the path taken, the bottom shows that same path with the closed nodes. Is it normal for the path to give up when it gets so close at the top and then go through the other way? My heuristic method works by finding the abolute shortest possible path (as if there were no obstacles). I do not use the "Manhattan method". Is this normal behavior? If I move the starting location down 1 space, then it looks just fine:
#############
#           #
#     #     #
#     #     #
#     #     #
#     #   : #
# ::  #  :  #
#   : # :   #
#    :#:    #
#     :     #
#           #
#############
#############
#           #
#     #     #
#   @@#     #
# @@@@#     #
#@@@@@#   : #
#@@@@@#  :  #
# @@@@# @   #
#  @@@#@    #
#     @     #
#           #
#############

Share this post


Link to post
Share on other sites
Advertisement
It doesn't "give up" and go the other way; it's trying both ways at the same time, and one of them wins out over the other.

Share this post


Link to post
Share on other sites
Quote:
Original post by Sneftel
It doesn't "give up" and go the other way; it's trying both ways at the same time, and one of them wins out over the other.


Do I feel like an idiot or what... [depressed]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!