made v0_random thinking longer

This commit is contained in:
Karma Riuk 2025-02-07 09:51:22 +01:00
parent 2764787e63
commit 1d83c066f6

View File

@ -6,7 +6,8 @@ Move ai::v0_random::_search(const Board& b) {
std::vector<Move> moves = b.all_legal_moves(); std::vector<Move> moves = b.all_legal_moves();
std::this_thread::sleep_for(std::chrono::milliseconds(10)); // Simulate work std::this_thread::sleep_for(std::chrono::milliseconds(thinking_time)
); // Simulate work
return moves[rand() % moves.size()]; return moves[rand() % moves.size()];
} }