LeelaChessZero / lc0

The rewritten engine, originally for tensorflow. Now all other backends have been ported here.
GNU General Public License v3.0
2.38k stars 525 forks source link

handle play contempt mode with infinite search #1898

Closed borg323 closed 1 year ago

borg323 commented 1 year ago

Makes sure play contempt mode is never used inside the search, it is switched to white/black depending on the first move side, same in normal searches, flipped when pondering or disabled in infinite search. For infinite search there is a warning if contempt would have an effect. In addition there is a fix for a preexisting wdl display bug, w and l were swapped while pondering. Also some cleanups.

Naphthalin commented 1 year ago

I believe I tested everything which is supposed to be tested, which includes

I didn't find any unintended behaviour, so this is funtionally ready for merge.