peter1591 / hearthstone-ai

A Hearthstone AI based on Monte Carlo tree search and neural nets written in modern C++.
302 stars 49 forks source link

accelerate state copy in default policy #65

Closed peter1591 closed 7 years ago

peter1591 commented 7 years ago

In default policy, the state is copied, but applied with only one action

Try to use state-overlay to accelerate the copying

peter1591 commented 7 years ago

After implement copy-on-write on state::State, the time to copy the state occupies only 7% of the total runtime.