diff --git a/cpp/src/ais/v0_random.cpp b/cpp/src/ais/v0_random.cpp new file mode 100644 index 0000000..82f569c --- /dev/null +++ b/cpp/src/ais/v0_random.cpp @@ -0,0 +1,8 @@ +#include "ai.hpp" + +std::string ai::v1_simple::search(std::string pos, int depth) { + Board b = Board::setup_fen_position(pos); + std::vector moves = b.all_legal_moves(); + + return moves[rand() % moves.size()].to_string(); +}