X-Git-Url: http://git.scottworley.com/slidingtile/blobdiff_plain/537a8dc7ce26e6ab5cf3c82ecce388d08566a8b8..8e3c9cff3a9dbe44519dcea244d528809cc45821:/sliding_tile_lib.h diff --git a/sliding_tile_lib.h b/sliding_tile_lib.h index de2ca1f..f0753fc 100644 --- a/sliding_tile_lib.h +++ b/sliding_tile_lib.h @@ -30,6 +30,7 @@ std::ostream& operator<<(std::ostream& os, const Board& board); struct Step { Step(Board board, std::shared_ptr prev); + ~Step(); Board board; std::shared_ptr prev; @@ -39,10 +40,11 @@ struct Step { int cost(const InvertedBoard& invgoal) const; static signed char adjacent[BOARD_SIZE][5]; + static int count; }; std::ostream& operator<<(std::ostream& os, const Step& step); -std::shared_ptr find_path(const std::string& start, const std::string& goal); -std::shared_ptr find_path(const Board& start, const Board& goal); +std::shared_ptr find_path(const std::string& start, const std::string& goal, unsigned max_frontier); +std::shared_ptr find_path(const Board& start, const Board& goal, unsigned max_frontier); #endif /* _SLIDING_TILE_LIB_H */