Skip to content

Instantly share code, notes, and snippets.

@mohsenheydari
Created February 4, 2019 14:49
Show Gist options
  • Save mohsenheydari/f1ec24ed5085d28ea08974a1fbed205f to your computer and use it in GitHub Desktop.
Save mohsenheydari/f1ec24ed5085d28ea08974a1fbed205f to your computer and use it in GitHub Desktop.
MCTS - Select promising child function in TreeSearch class
selectPromisingChild(node) {
while(!node.state.isTerminal && node.isFullyExpanded) {
node = this.uct.findBestChild(node);
}
return node;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment