mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Fix Contempt Factor implementation
First disable Contempt Factor during analysis, then calculate the modified draw score from the point of view of the player, so from the point of view of RootPosition color. Thanks to Ryan Taker for suggesting the fixes. No functional change.
This commit is contained in:
@@ -27,7 +27,8 @@ class Position;
|
||||
namespace Eval {
|
||||
|
||||
extern Color RootColor;
|
||||
extern Value ValueDrawContempt;
|
||||
extern Value ContemptFactor;
|
||||
extern Value ValueDraw[2];
|
||||
|
||||
extern void init();
|
||||
extern Value evaluate(const Position& pos, Value& margin);
|
||||
|
||||
Reference in New Issue
Block a user