From 3338085567b6c34cc3e9437709f3dd48db6a1710 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Mon, 14 Oct 2024 12:47:59 +0700 Subject: [PATCH] update --- src/interface.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 84b9ae1..be40b2c 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -84,10 +84,8 @@ function runMCTS( backpropagate(leafNode, simTrajectoryReward) end - # stop if the tree early stop condition is met - if typeof(earlystop) <: Function - result = earlystop(node.state) - + # stop if the early stop condition is met + if typeof(earlystop) <: Function && earlystop(node.state) break end end