Skip to content

Commit

Permalink
Revert tm change.
Browse files Browse the repository at this point in the history
  • Loading branch information
dshawul committed Aug 16, 2019
1 parent 86a0f60 commit 43dae28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mcts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ void SEARCHER::generate_and_score_moves(int depth, int alpha, int beta) {
if(*p < minp) minp = *p;
}
/*Minimize draws for low visits training*/
if(is_selfplay && !ply) {
if(!ply && chess_clock.max_visits < low_visits_threshold) {
int score = pstack->best_score;
for(int i = 0;i < pstack->count; i++) {
float* p = (float*)&pstack->score_st[i];
Expand Down
4 changes: 2 additions & 2 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1187,10 +1187,10 @@ void CHESS_CLOCK::set_stime(int hply, bool output) {
else p_time = int(0.7 * p_time);
if(pondering) p_time /= 4;

if(move_no <= 35)
if(move_no <= 20)
est_moves_left = 45 - move_no;
else
est_moves_left = 10;
est_moves_left = 25;

if(!mps) {
moves_left = est_moves_left;
Expand Down

0 comments on commit 43dae28

Please sign in to comment.