#include "misc.hpp" #include "moves.hpp" #include #include #include /* * Return engine name with version number */ std::string_view engine_info() { return "Mono 1\n"; } /* * Returns total possible branches with depth X */ uint64_t MoveGenTest(uint32_t depth, Game *g) { if (depth == 0) { return 1; } uint64_t positionCount = 0; std::vector moves = GetLegalMoves(g); // for each possible move create new branch for (uint16_t move : moves) { Undo undo = MakeMove(move, g); positionCount += MoveGenTest(depth - 1, g); UndoMove(undo, g); } return positionCount; }