From ceced04171744d61eea2aaccfc051a4b5a4b60d0 Mon Sep 17 00:00:00 2001 From: tonaerospace Date: Thu, 20 Mar 2025 05:45:58 +0700 Subject: [PATCH] update --- src/interface.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index db8970a..69b8717 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -64,7 +64,7 @@ function runMCTS( saveSimulatedNode::Bool=false, multithread=false, )::NamedTuple{(:root, :bestNextState, :bestTerminalState, :highValueStateList), - Tuple{MCTSNode,T,T,Vector{Any}}} where {T<:Any} + Tuple{MCTSNode,T,T,Vector{Dict{Symbol,Any}}}} where {T<:Any} root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String,MCTSNode}(), Dict{Symbol,Any}()) @@ -125,7 +125,7 @@ function runMCTS( bestTerminalState = selectBestTrajectoryNode(root) # take all high value state from highValueState channel and put it in a list - highValueStateList = Any[] + highValueStateList = Vector{Dict{Symbol, Any}}() while !isempty(highValueState) push!(highValueStateList, take!(highValueState)) end @@ -136,7 +136,6 @@ function runMCTS( highValueStateList=highValueStateList) end - """ Search the best action to take for a given state and task # Arguments