From ec4cc85ca3e54e2be69eb3a9788769b6f3409253 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Sun, 16 Feb 2025 10:59:04 +0100 Subject: [PATCH] logging depth reached with iterative deepening --- src/model/ais/v6_iterative_deepening.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/model/ais/v6_iterative_deepening.cpp b/src/model/ais/v6_iterative_deepening.cpp index 2f05500..4dbb9fc 100644 --- a/src/model/ais/v6_iterative_deepening.cpp +++ b/src/model/ais/v6_iterative_deepening.cpp @@ -15,7 +15,8 @@ Move ai::v6_iterative_deepening::_search(const Board& b) { int best_eval = -INFINITY; std::map> futures; - for (int depth = 1; !stop_computation; depth++) { + int depth; + for (depth = 1; !stop_computation; depth++) { for (const Move& move : moves) { Board tmp_board = b.make_move(move); futures.insert( @@ -38,5 +39,7 @@ Move ai::v6_iterative_deepening::_search(const Board& b) { } futures.clear(); } + + std::cout << "Went up until depth: " << depth << std::endl; return best_move; }