update
This commit is contained in:
@@ -131,7 +131,7 @@ function expand(a::T1, node::MCTSNode, state::T2, decisionMaker::Function, state
|
|||||||
@show thoughtDict
|
@show thoughtDict
|
||||||
newstate = MCTStransition(a, node.state, thoughtDict) #[] Implement your transition function
|
newstate = MCTStransition(a, node.state, thoughtDict) #[] Implement your transition function
|
||||||
|
|
||||||
if newstate ∉ keys(node.children) # BUG should be "key of the newstate" here not newstate
|
if newstate ∉ keys(node.children)# BUG should be "key of the newstate" here not newstate itself
|
||||||
statetype = typeof(state)
|
statetype = typeof(state)
|
||||||
|
|
||||||
# BUG should be node.children[key of newstate] here not newstate. may be a uuid
|
# BUG should be node.children[key of newstate] here not newstate. may be a uuid
|
||||||
|
|||||||
Reference in New Issue
Block a user