X-Git-Url: http://git.scottworley.com/slidingtile/blobdiff_plain/e86755d75f4040ae6619702a6501325ea81b03e1..ab51c07a99c1927c95a123e6912925adba83714f:/sliding_tile.cc diff --git a/sliding_tile.cc b/sliding_tile.cc index 4b7e917..cfa7425 100644 --- a/sliding_tile.cc +++ b/sliding_tile.cc @@ -1,4 +1,12 @@ #include "sliding_tile_lib.h" +#include "gflags/gflags.h" -int main() { +#include + +DEFINE_string(start, "", "The starting tile positions. 0 is the hole."); +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."); + +int main(int argc, char** argv) { + gflags::ParseCommandLineFlags(&argc, &argv, false); + std::cout << *find_path(FLAGS_start, FLAGS_goal); }