Skip to content

Commit

Permalink
support setting only one value
Browse files Browse the repository at this point in the history
Bench: 5060299
  • Loading branch information
Adam-Kulju authored Dec 29, 2024
1 parent 7fe0ecf commit d17a330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions engine/src/search.h
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ void iterative_deepen(
goto finish;
}

if (thread_info.thread_id == 0 && !thread_info.doing_datagen) {
if (thread_info.thread_id == 0 && !thread_info.doing_datagen && !(thread_info.is_human && thread_info.multipv_index)) {
std::string bound_string;
if (score >= beta) {
bound_string = "lowerbound";
Expand Down Expand Up @@ -1066,7 +1066,7 @@ void iterative_deepen(
nps = wezly;
}

if (!thread_info.doing_datagen) {
if (!thread_info.doing_datagen && !(thread_info.is_human && thread_info.multipv_index)) {
printf("info multipv %i depth %i seldepth %i score %s nodes %" PRIu64
" nps %" PRIi64 " time %" PRIi64 " pv ",
thread_info.multipv_index + 1, depth, thread_info.seldepth,
Expand Down
8 changes: 4 additions & 4 deletions engine/src/uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ void uci(ThreadInfo &thread_info, Position &position) {
"option name Threads type spin default 1 min 1 max 1024\n"
"option name MultiPV type spin default 1 min 1 max 255\n"
"option name UCI_LimitStrength type check default false\n"
"option name Skill_Level type spin default 20 min 1 max 20\n"
"option name UCI_Elo type spin default 3000 min 500 max 3000\n"
"option name Skill_Level type spin default 21 min 1 max 21\n"
"option name UCI_Elo type spin default 3001 min 500 max 3001\n"
"option name UCI_Chess960 type check default false\n");

/*for (auto &param : params) {
Expand Down Expand Up @@ -213,11 +213,11 @@ void uci(ThreadInfo &thread_info, Position &position) {
}
}

else if (name == "UCI_Elo") {
else if (name == "UCI_Elo" && value != 3001) {
thread_info.cp_loss = 200 - (value / 13);
}

else if (name == "Skill_Level") {
else if (name == "Skill_Level" && value != 21) {
int to_elo = skill_levels[value - 1];
thread_info.cp_loss = 200 - (to_elo / 13);
}
Expand Down

0 comments on commit d17a330

Please sign in to comment.