From 43f7be1dc7da59f4757ec42124c6c7cc69a82b13 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 27 Apr 2024 22:18:19 +0700 Subject: [PATCH] update --- src/interface.jl | 2 -- src/mcts.jl | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index a11011f..67d638d 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -83,8 +83,6 @@ function decisionMaker(a::T1, state::T2) where {T1<:agent, T2<:AbstractDict} # (trajectories) # """ - - #[WORKING] _prompt = """ You are a helpful sommelier working for a wine store. diff --git a/src/mcts.jl b/src/mcts.jl index 004459d..e4b4d04 100644 --- a/src/mcts.jl +++ b/src/mcts.jl @@ -135,12 +135,13 @@ function expand(a::T1, node::MCTSNode, state::T2, decisionMaker::Function, state # sampling action from decisionMaker for sample in 1:n thought = decisionMaker(a, state) - error("--> expand") + newState = transition(node.state, action) #[] Implement your transition function if newState ∉ keys(node.children) node.children[newState] = MCTSNode(newState, 0, 0.0, Dict{T, MCTSNode}()) end end + error("--> expand") end """