Код: Выделить всё
void findValue(promise> &pr, vector &board, int depth, int player){
vector result = minimax(board, depth, player, -10000, 10000);
pr.set_value(result);
}
void debugBoard(){
int maxDepth = 5;
auto board = customPosition();
int turn = 1;
int startTime = clock();
vector result;
vector threads;
vector futures;
for(int i=1;i
Подробнее здесь: [url]https://stackoverflow.com/questions/78164618/c-promises-and-futures-giving-errors[/url]
Мобильная версия