v0.1.4 #2

Closed
ton wants to merge 22 commits from v0.1.4 into main
Showing only changes of commit ceced04171 - Show all commits
+2 -3
View File
@@ -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