]>
Commit | Line | Data |
---|---|---|
e86755d7 | 1 | #include "sliding_tile_lib.h" |
0baac4a7 | 2 | #include "gflags/gflags.h" |
e86755d7 | 3 | |
537a8dc7 SW |
4 | #include <iostream> |
5 | ||
0baac4a7 SW |
6 | DEFINE_string(start, "", "The starting tile positions. 0 is the hole."); |
7 | DEFINE_string(goal, "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0", "The desired tile positions. 0 is the hole."); | |
3edec61d | 8 | DEFINE_int32(max_frontier, 500000, "The maximum frontier size. Larger values run longer and give shorter paths."); |
0baac4a7 SW |
9 | |
10 | int main(int argc, char** argv) { | |
11 | gflags::ParseCommandLineFlags(&argc, &argv, false); | |
8e3c9cff | 12 | std::cout << *find_path(FLAGS_start, FLAGS_goal, FLAGS_max_frontier); |
e86755d7 | 13 | } |