-
-
Save AncalagonX/75892d7f4f9fed74d4cf7c91f719d92f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...... | |
...... | |
...... | |
...... | |
...... | |
if (is_root && child->get_visits() <= 100) { | |
best = child.get(); | |
assert(best != nullptr); | |
return best; | |
} | |
else if (value > best_value) { | |
best_value = value; | |
best = child.get(); | |
} | |
} | |
assert(best != nullptr); | |
return best; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment