MarkZH / Genetic_Chess

An amateur attempt at breeding a chess-playing AI.
MIT License
10 stars 2 forks source link

Investigate running gene pool with std::transform with a parallel execution policy #113

Closed MarkZH closed 1 year ago

MarkZH commented 1 year ago

https://en.cppreference.com/w/cpp/algorithm/transform https://en.cppreference.com/w/cpp/algorithm/execution_policy_tag_t

This would replace Thread_Limiter/std::counting_semaphore.

Caveat: would it still be possible to control the number of simultaneous games?

MarkZH commented 1 year ago

Would also need a custom iterator to return pairs of iterators for match ups.