faking some thought for the random player
This commit is contained in:
parent
0274f44647
commit
74fa99fe7b
@ -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()];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user