From de51dfd69d308938f8b8f15ba19c3d612dcb9bb6 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 1 Jun 2024 08:22:33 +0700 Subject: [PATCH] update --- src/mcts.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")