Skip to content

Commit

Permalink
Version 1.2.1 (#9)
Browse files Browse the repository at this point in the history
* final leaf nodes never get expanded

* version
  • Loading branch information
sdsomma authored Sep 22, 2018
1 parent 0d80866 commit b801952
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion montecarlo/montecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def expand(self, node):
self.random_rollout(child)
child.children = []

node.expanded = True
if len(node.children):
node.expanded = True

def random_rollout(self, node):
self.child_finder(node, self)
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
A Python3 library that you can use to run a Monte Carlo tree search, either traditionally with drilling down to end game states or with expert policies as you might provide from a neural network.

- **Version:** 1.2.0
- **Version:** 1.2.1

[![Build Status](https://travis-ci.org/ImparaAI/monte-carlo-tree-search.png?branch=master)](https://travis-ci.org/ImparaAI/monte-carlo-tree-search)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="imparaai-montecarlo",
version="1.2.0",
version="1.2.1",
license='MIT',
author="ImparaAI",
author_email="[email protected]",
Expand Down

0 comments on commit b801952

Please sign in to comment.