This commit is contained in:
narawat lamaiin
2024-07-10 17:30:30 +07:00
parent 05830f3d9a
commit 32dec4b47c
2 changed files with 6 additions and 10 deletions

View File

@@ -32,7 +32,7 @@ using ..type, ..mcts, ..util
aggressively explore new state.
# Return
- `(bestNextState, BestFinalState)::@NamedTuple{bestNextState::T, bestFinalState::T}`
- `NamedTuple{(:bestNextState, :bestFinalState), Tuple{T, T}}`
the best next state and the best final state
# Example
@@ -49,7 +49,7 @@ function runMCTS(
maxdepth::Integer=3,
maxiterations::Integer=10,
explorationweight::Number=1.0,
)::@NamedTuple{bestNextState::T, bestFinalState::T} where {T<:Any}
)::NamedTuple{(:bestNextState, :bestFinalState), Tuple{T, T}} where {T<:Any}
root = MCTSNode("root", initialstate, 0, 0, 0, 0, false, nothing, Dict{String, MCTSNode}())