This commit is contained in:
narawat lamaiin
2024-04-27 22:18:19 +07:00
parent 1662e4c924
commit 43f7be1dc7
2 changed files with 2 additions and 3 deletions

View File

@@ -135,12 +135,13 @@ function expand(a::T1, node::MCTSNode, state::T2, decisionMaker::Function, state
# sampling action from decisionMaker
for sample in 1:n
thought = decisionMaker(a, state)
error("--> expand")
newState = transition(node.state, action) #[] Implement your transition function
if newState keys(node.children)
node.children[newState] = MCTSNode(newState, 0, 0.0, Dict{T, MCTSNode}())
end
end
error("--> expand")
end
"""