logging depth reached with iterative deepening
Some checks failed
tagged-release / Tagged Release (push) Has been cancelled
Some checks failed
tagged-release / Tagged Release (push) Has been cancelled
This commit is contained in:
parent
97f9def306
commit
ec4cc85ca3
@ -15,7 +15,8 @@ Move ai::v6_iterative_deepening::_search(const Board& b) {
|
||||
int best_eval = -INFINITY;
|
||||
|
||||
std::map<Move, std::future<int>> 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user