diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-21 15:31:53 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-21 15:31:53 +0300 |
| commit | 596eeed9dd378a8994778e03319b538206672bec (patch) | |
| tree | 81ea2152c06cfea43aecee0d9eb320f168dd4342 /path.h | |
| parent | 5f73b16c1e80ef40e3cb95aef36d8fe964970565 (diff) | |
Implement breadth-first-search + fix the priority queue + some other stuff
Diffstat (limited to 'path.h')
| -rw-r--r-- | path.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#ifndef ASTAR_H_ +#define ASTAR_H_ + +#include "structs.h" +#include "map.h" + +Path breadth_first_search_path_4dir(Map map, size_t width, size_t height, Position start, Position end); + +Path astar_path_4dir(Map map, size_t width, size_t height, Position start, Position end); +size_t manhattan_distance(Position a, Position b); + +#endif /* ASTAR_H_ */ |
