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