]> git.scottworley.com Git - slidingtile/blame - sliding_tile.cc
Switch from priority_queue to multimap
[slidingtile] / sliding_tile.cc
CommitLineData
e86755d7 1#include "sliding_tile_lib.h"
0baac4a7 2#include "gflags/gflags.h"
e86755d7 3
537a8dc7
SW
4#include <iostream>
5
0baac4a7
SW
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);
537a8dc7 11 std::cout << *find_path(FLAGS_start, FLAGS_goal);
e86755d7 12}