From 9e39d54c4bfc562655d8f6325df025300364b587 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 29 Jun 2024 20:14:12 +0700 Subject: [PATCH] update --- src/interface.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 3322241..d0d0ff2 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -54,7 +54,7 @@ function runMCTS( maxdepth::Integer=3, maxiterations::Integer=10, explorationweight::Number=1.0, - )::Tuple + )::NamedTuple root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String, MCTSNode}()) @@ -91,7 +91,7 @@ function runMCTS( bestNextState = selectBestNextState(root) besttrajectory = selectBestTrajectory(root) - return (bestNextState.state, besttrajectory.state) + return (bestNextState=bestNextState.state, bestFinalState=besttrajectory.state) end