mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Symmetric king safety
Retire current asymmetric king evaluation and use a much simpler symmetric one. As a side effect retire the infamous 'Aggressiveness' and 'Cowardice' UCI options. Tested in no-regression mode, Passed both STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 33855 W: 5863 L: 5764 D: 22228 And LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 40571 W: 5852 L: 5760 D: 28959 bench: 8321835
This commit is contained in:
committed by
Marco Costalba
parent
5e03734eac
commit
40f5abba10
@@ -42,7 +42,6 @@ namespace Search {
|
||||
LimitsType Limits;
|
||||
std::vector<RootMove> RootMoves;
|
||||
Position RootPos;
|
||||
Color RootColor;
|
||||
Time::point SearchTime;
|
||||
StateStackPtr SetupStates;
|
||||
}
|
||||
@@ -182,12 +181,11 @@ void Search::think() {
|
||||
|
||||
static PolyglotBook book; // Defined static to initialize the PRNG only once
|
||||
|
||||
RootColor = RootPos.side_to_move();
|
||||
TimeMgr.init(Limits, RootPos.game_ply(), RootColor);
|
||||
TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move());
|
||||
|
||||
int cf = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns
|
||||
DrawValue[ RootColor] = VALUE_DRAW - Value(cf);
|
||||
DrawValue[~RootColor] = VALUE_DRAW + Value(cf);
|
||||
DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(cf);
|
||||
DrawValue[~RootPos.side_to_move()] = VALUE_DRAW + Value(cf);
|
||||
|
||||
if (RootMoves.empty())
|
||||
{
|
||||
@@ -216,8 +214,8 @@ void Search::think() {
|
||||
log << "\nSearching: " << RootPos.fen()
|
||||
<< "\ninfinite: " << Limits.infinite
|
||||
<< " ponder: " << Limits.ponder
|
||||
<< " time: " << Limits.time[RootColor]
|
||||
<< " increment: " << Limits.inc[RootColor]
|
||||
<< " time: " << Limits.time[RootPos.side_to_move()]
|
||||
<< " increment: " << Limits.inc[RootPos.side_to_move()]
|
||||
<< " moves to go: " << Limits.movestogo
|
||||
<< "\n" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user