#include "ai.hpp" #include Move ai::v0_random::_search(const Board& b) { std::vector moves = b.all_legal_moves(); std::this_thread::sleep_for(std::chrono::milliseconds(thinking_time) ); // Simulate work return moves[rand() % moves.size()]; }