Skip to content

Commit aa10d0a

Browse files
mcostalbazamar
authored andcommitted
Rename "Contempt Factor" to "Contempt"
Suggested by Ronald and Lucas on talkchess. No functional change. Conflicts: src/ucioption.cpp
1 parent ff480bd commit aa10d0a

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void Search::think() {
187187

188188
TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move());
189189

190-
int cf = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns
190+
int cf = Options["Contempt"] * PawnValueEg / 100; // From centipawns
191191
DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(cf);
192192
DrawValue[~RootPos.side_to_move()] = VALUE_DRAW + Value(cf);
193193

src/ucioption.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ bool CaseInsensitiveLess::operator() (const string& s1, const string& s2) const
5454

5555
void init(OptionsMap& o) {
5656

57-
o["Write Debug Log"] << Option(false, on_logger);
58-
o["Contempt Factor"] << Option(0, -100, 100);
59-
o["Min Split Depth"] << Option(0, 0, 12, on_threads);
60-
o["Threads"] << Option(1, 1, MAX_THREADS, on_threads);
61-
o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size);
62-
o["Clear Hash"] << Option(on_clear_hash);
63-
o["Ponder"] << Option(true);
64-
o["MultiPV"] << Option(1, 1, 500);
65-
o["Skill Level"] << Option(20, 0, 20);
66-
o["Move Overhead"] << Option(30, 0, 5000);
67-
o["Minimum Thinking Time"] << Option(20, 0, 5000);
68-
o["Slow Mover"] << Option(80, 10, 1000);
69-
o["UCI_Chess960"] << Option(false);
57+
o["Write Debug Log"] << Option(false, on_logger);
58+
o["Contempt"] << Option(0, -100, 100);
59+
o["Min Split Depth"] << Option(0, 0, 12, on_threads);
60+
o["Threads"] << Option(1, 1, MAX_THREADS, on_threads);
61+
o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size);
62+
o["Clear Hash"] << Option(on_clear_hash);
63+
o["Ponder"] << Option(true);
64+
o["MultiPV"] << Option(1, 1, 500);
65+
o["Skill Level"] << Option(20, 0, 20);
66+
o["Move Overhead"] << Option(30, 0, 5000);
67+
o["Minimum Thinking Time"] << Option(20, 0, 5000);
68+
o["Slow Mover"] << Option(80, 10, 1000);
69+
o["UCI_Chess960"] << Option(false);
7070
}
7171

7272

0 commit comments

Comments
 (0)