1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Retire UCI_AnalyseMode option

It has been obsoleted out already some time ago
and currently there is no point in changing eval
score according to if we are in game or analyzing.

So retire the option.

No functional change.
This commit is contained in:
Marco Costalba 2014-03-01 12:10:42 +01:00
parent b917cd275e
commit 9f0485e343
3 changed files with 5 additions and 12 deletions

View file

@ -44,4 +44,3 @@ Emergency Move Time = 70
Minimum Thinking Time = 20
Slow Mover = 100
UCI_Chess960 = false
UCI_AnalyseMode = false

View file

@ -185,6 +185,11 @@ void Search::think() {
RootColor = RootPos.side_to_move();
TimeMgr.init(Limits, RootPos.game_ply(), RootColor);
// Dynamic draw value: try to avoid repetition draws at early midgame
int cf = std::max(70 - RootPos.game_ply(), 0);
DrawValue[ RootColor] = VALUE_DRAW - Value(cf);
DrawValue[~RootColor] = VALUE_DRAW + Value(cf);
if (RootMoves.empty())
{
RootMoves.push_back(MOVE_NONE);
@ -206,16 +211,6 @@ void Search::think() {
}
}
if (!Options["UCI_AnalyseMode"])
{
// Dynamic draw value: try to avoid repetition draws at early midgame
int cf = std::max(70 - RootPos.game_ply(), 0);
DrawValue[ RootColor] = VALUE_DRAW - Value(cf);
DrawValue[~RootColor] = VALUE_DRAW + Value(cf);
}
else
DrawValue[WHITE] = DrawValue[BLACK] = VALUE_DRAW;
if (Options["Write Search Log"])
{
Log log(Options["Search Log Filename"]);

View file

@ -85,7 +85,6 @@ void init(OptionsMap& o) {
o["Minimum Thinking Time"] = Option(20, 0, 5000);
o["Slow Mover"] = Option(80, 10, 1000);
o["UCI_Chess960"] = Option(false);
o["UCI_AnalyseMode"] = Option(false, on_eval);
}