mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Rename "Contempt Factor" to "Contempt"
Suggested by Ronald and Lucas on talkchess. No functional change. Conflicts: src/ucioption.cpp
This commit is contained in:
parent
ff480bdb83
commit
aa10d0aaa6
2 changed files with 14 additions and 14 deletions
|
@ -187,7 +187,7 @@ void Search::think() {
|
||||||
|
|
||||||
TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move());
|
TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move());
|
||||||
|
|
||||||
int cf = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns
|
int cf = Options["Contempt"] * PawnValueEg / 100; // From centipawns
|
||||||
DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(cf);
|
DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(cf);
|
||||||
DrawValue[~RootPos.side_to_move()] = VALUE_DRAW + Value(cf);
|
DrawValue[~RootPos.side_to_move()] = VALUE_DRAW + Value(cf);
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ bool CaseInsensitiveLess::operator() (const string& s1, const string& s2) const
|
||||||
void init(OptionsMap& o) {
|
void init(OptionsMap& o) {
|
||||||
|
|
||||||
o["Write Debug Log"] << Option(false, on_logger);
|
o["Write Debug Log"] << Option(false, on_logger);
|
||||||
o["Contempt Factor"] << Option(0, -100, 100);
|
o["Contempt"] << Option(0, -100, 100);
|
||||||
o["Min Split Depth"] << Option(0, 0, 12, on_threads);
|
o["Min Split Depth"] << Option(0, 0, 12, on_threads);
|
||||||
o["Threads"] << Option(1, 1, MAX_THREADS, on_threads);
|
o["Threads"] << Option(1, 1, MAX_THREADS, on_threads);
|
||||||
o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size);
|
o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue