Skip to content

Commit

Permalink
Don't use value_evaluation_threshold in CONST_PLAYOUT_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
zakki committed Jun 18, 2017
1 parent bbda30f commit 61beb06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UctSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,8 @@ UctSearch(game_info_t *game, int color, mt19937_64 *mt, LGR& lgrf, LGRContext& l

bool expected = false;
if (use_nn
&& n >= expand_threshold * value_evaluation_threshold
&& (n >= expand_threshold * value_evaluation_threshold
|| mode == CONST_PLAYOUT_MODE)
&& atomic_compare_exchange_strong(&uct_child[next_index].eval_value, &expected, true)) {

uct_node_t *root = &uct_node[current_root];
Expand Down

0 comments on commit 61beb06

Please sign in to comment.