diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-22 12:23:35 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-22 12:23:35 +0300 |
| commit | d96ba29434808b94cccfcce7a675e5abbd2d846d (patch) | |
| tree | f02ce36a0ec0acbc87d0a454062e6300445ad0f2 /map.h | |
| parent | 348c700fedae3b0005660d8c42941fe7c69027d4 (diff) | |
Add ability to choose maps via args + create more maps + don't insert elements into a PPQ if there's one with better priority
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,8 +9,8 @@ /* Returns an empty map of given size */ Map empty_map(size_t width, size_t height); -/* Stores all the existing neighbours of pos in neighbour_array and returns their amount */ -unsigned int neighbours(Position neighbour_array[], Position pos, size_t width, size_t height, \ +/* Stores all the existing 4dir neighbours of pos in neighbour_array and returns their amount */ +unsigned int neighbours_4dir(Position neighbour_array[], Position pos, size_t width, size_t height, \ char visited[height][width]); /* https://en.wikipedia.org/wiki/Maze_generation_algorithm#Randomized_depth-first_search |
