Answer the question
In order to leave comments, you need to log in
An example of a program for finding the shortest path
An example of a program for finding the shortest path in a hexagonal grid (at least 10x10) in c ++, a console program that draws the path as you like ... Need it very urgently
Answer the question
In order to leave comments, you need to log in
hexagonal grid = 2D field => write yourself a dijkstra - en.wikipedia.org/wiki/Dijkstra's_algorithm
I advise you to read the article "Searching for a path with a wave algorithm" in the journal "PROgrammist" No. 14.
procoder.info/index.php/articles/14/190-pathfinding-wave-algorithm
Do you have any examples of c++ code? I'm not very good at writing, but I understand the code well, I want to figure it out before morning.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question