aboutsummaryrefslogtreecommitdiff
path: root/path.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-21 15:31:53 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-21 15:31:53 +0300
commit596eeed9dd378a8994778e03319b538206672bec (patch)
tree81ea2152c06cfea43aecee0d9eb320f168dd4342 /path.h
parent5f73b16c1e80ef40e3cb95aef36d8fe964970565 (diff)
Implement breadth-first-search + fix the priority queue + some other stuff
Diffstat (limited to 'path.h')
-rw-r--r--path.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/path.h b/path.h
new file mode 100644
index 0000000..9de376e
--- /dev/null
+++ b/path.h
@@ -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_ */