-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepare_maze.cpp
More file actions
34 lines (28 loc) · 1.1 KB
/
prepare_maze.cpp
File metadata and controls
34 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "AStar.hh"
vector<string> maze = {
"###############################",
"#s # # #",
"# #### # # # # #### ####",
"# # # # # #",
"# #### #### # # ####### #",
"# # # # # # #",
"###################### # ####",
"# # # #",
"# ####### #### #### # # #",
"# # # # # # # #",
"# # # # ####### # # # #",
"# # # # # # #",
"# # # ####### #### #######",
"# # # # #",
"# #### # # # # ####### #",
"# # # # # # # # # #",
"# ########## # # # # # #",
"# # # # # #",
"# ####### ########## #######",
"# # # g#",
"###############################"
};
int main() {
AStarResult result = AStar(processMaze(maze), false); // maze, allow diagonals
result.print_maze_solution_path();
}