This commit is contained in:
narawat lamaiin
2025-03-22 21:33:20 +07:00
parent c777800948
commit 093290a33b

View File

@@ -130,10 +130,14 @@ function runMCTS(
push!(highValueStateList, take!(highValueState)) push!(highValueStateList, take!(highValueState))
end end
return (root=root, result = (
bestNextState=bestNextState.state, root=root,
bestTerminalState=bestTerminalState.state, bestNextState=bestNextState.state,
highValueStateList=highValueStateList) bestTerminalState=bestTerminalState.state,
highValueStateList=highValueStateList
)
return result
end end
""" Search the best action to take for a given state and task """ Search the best action to take for a given state and task