diff --git a/src/interface.jl b/src/interface.jl index ff2b87e..5b4e88e 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -55,7 +55,7 @@ function runMCTS( maxDepth::Integer=3, maxiterations::Integer=10, explorationweight::Number=1.0, - ) where {T1<:AbstractDict} + ) root = MCTSNode("root", initialState, 0, 0, 0, 0, false, nothing, Dict{String, MCTSNode}()) diff --git a/src/mcts.jl b/src/mcts.jl index cc69585..5eff50b 100644 --- a/src/mcts.jl +++ b/src/mcts.jl @@ -288,7 +288,7 @@ julia> """ function simulate(node::MCTSNode, transition::Function, args...; maxDepth::Integer=3, totalsample::Integer=3 - )::Union{Tuple{Number, Dict{Symbol, <:Any}}, Tuple{Number, Nothing}} where {T<:AbstractDict} + )::Union{Tuple{Number, Dict{Symbol, <:Any}}, Tuple{Number, Nothing}} simTrajectoryReward = 0.0 terminalstate = nothing