diff options
Diffstat (limited to 'problem.cpp')
-rw-r--r-- | problem.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/problem.cpp b/problem.cpp index fb7670b..28ef8fa 100644 --- a/problem.cpp +++ b/problem.cpp @@ -56,14 +56,29 @@ bool hilare_a_mvt::intersects(const problem &p) const { // ================================= // solution solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos_b) { + vector<hilare_a_mvt> sol; + // TODO: try different possibilities and chose the shortest one - return solution(vector<hilare_a_mvt>()); + hilare_a_mvt mvt; + mvt.from = pos_a; + mvt.to = pos_b; + mvt.is_arc = false; + // la suite à compléter + sol.push_back(mvt); + + return solution(sol); } // =============================== // // IMPLEMENTATION FOR CLASS SOLVER // // =============================== // -// TODO +solver::solver() { + // nothing ? +} + +solver_internal solver::peek_internal() { + return _d; +} /* vim: set ts=4 sw=4 tw=0 noet :*/ |