diff --git a/src/mcts.jl b/src/mcts.jl index ac7bb18..4764be2 100644 --- a/src/mcts.jl +++ b/src/mcts.jl @@ -335,7 +335,8 @@ function makeNewState(currentstate::T1, thoughtDict::T4, response::T2, select::U currentstate_latestThoughtKey, currentstate_latestThoughtIndice = GeneralUtils.findHighestIndexKey(currentstate[:thoughtHistory], "thought") - currentstate_nextIndice = currentstate_latestThoughtKey == :NA ? 1 : currentstate_latestThoughtIndice + 1 + currentstate_nextIndice = + currentstate_latestThoughtKey == :NA ? 1 : currentstate_latestThoughtIndice + 1 currentstate_latestThoughtKey = Symbol("thought_$currentstate_nextIndice") latestActionKey = Symbol("action_$currentstate_nextIndice")