faking some thought for the random player
This commit is contained in:
@ -5,5 +5,8 @@
|
||||
Move ai::v0_random::_search(const Board& b) {
|
||||
std::vector<Move> moves = b.all_legal_moves();
|
||||
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10)); // Simulate work
|
||||
|
||||
return moves[rand() % moves.size()];
|
||||
}
|
||||
|
Reference in New Issue
Block a user