faking some thought for the random player

This commit is contained in:
Karma Riuk 2025-02-06 23:46:06 +01:00
parent 0274f44647
commit 74fa99fe7b

View File

@ -5,5 +5,8 @@
Move ai::v0_random::_search(const Board& b) { 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
return moves[rand() % moves.size()]; return moves[rand() % moves.size()];
} }