]> git.sesse.net Git - stockfish/commit
Fix Contempt Factor implementation
authorMarco Costalba <mcostalba@gmail.com>
Sat, 6 Oct 2012 08:12:34 +0000 (10:12 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 6 Oct 2012 08:12:34 +0000 (10:12 +0200)
commitcedbd3332a4a1574e701bda098a9df1153e299c6
tree2c96219c310db0a63f223c8ccdc8fae11202867f
parentff9ca3e76eb6432dee8ed2442e3942b93d0f6ba5
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.
src/evaluate.cpp
src/evaluate.h
src/search.cpp