Skip to content

Commit ce0e7d4

Browse files
authored
Update README.md
1 parent d148e59 commit ce0e7d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ All this settings could be adjusted in the __#define__ statements at the beginni
172172

173173
This is because **AStar()** needs this 2-dimensional vector <br>
174174
to figure out wheather its a walkable or not walkable terrain. <br><br>
175-
**prepare_maze()** can handle a vector\<string> or another vector\<vector\<char>>. <br>
175+
**prepare_maze()** can handle a vector\<string> or vector\<vector\<char>> <br>
176176

177177
https://github.com/LukeProducts/AStar-Pathfinding-Cpp/blob/14c2a2b6773bd87094b09eae8189e36539831fc7/examples/prepare_maze.cpp#L7-L32
178178

@@ -196,6 +196,12 @@ what happens:
196196
<h3> <a href="https://github.com/LukeProducts/AStar-Pathfinding-Cpp/blob/main/AStar.hpp#L396-L421">find_obj</a> - function </h3>
197197

198198

199-
**find_obj** finds an character out of a default maze, which needs to be a vector\<string>
199+
**find_obj** finds an character out of a maze in ascii format, <br>
200+
such as vector\<string> or vector\<vector\<char>> <br>
201+
and returns a vector\<int> with the (x, y) position of the character into the maze. <br>
202+
This is usefull to figure out the start and ends position in your maze, <br>
203+
so that you can pass this info into Astar(), which needs the position <br>
204+
of the start and end node at second and third position like findobj() returns it for you.
205+
200206

201207

0 commit comments

Comments
 (0)