Skip to content

Commit 61beb06

Browse files
committed
Don't use value_evaluation_threshold in CONST_PLAYOUT_MODE
1 parent bbda30f commit 61beb06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/UctSearch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,8 @@ UctSearch(game_info_t *game, int color, mt19937_64 *mt, LGR& lgrf, LGRContext& l
15871587

15881588
bool expected = false;
15891589
if (use_nn
1590-
&& n >= expand_threshold * value_evaluation_threshold
1590+
&& (n >= expand_threshold * value_evaluation_threshold
1591+
|| mode == CONST_PLAYOUT_MODE)
15911592
&& atomic_compare_exchange_strong(&uct_child[next_index].eval_value, &expected, true)) {
15921593

15931594
uct_node_t *root = &uct_node[current_root];

0 commit comments

Comments
 (0)