]> git.scottworley.com Git - slidingtile/blame_incremental - sliding_tile.cc
find_path
[slidingtile] / sliding_tile.cc
... / ...
CommitLineData
1#include "sliding_tile_lib.h"
2#include "gflags/gflags.h"
3
4#include <iostream>
5
6DEFINE_string(start, "", "The starting tile positions. 0 is the hole.");
7DEFINE_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.");
8
9int main(int argc, char** argv) {
10 gflags::ParseCommandLineFlags(&argc, &argv, false);
11 std::cout << *find_path(FLAGS_start, FLAGS_goal);
12}