Why does stockfish randomise draw evaluations?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

konsolas
Posts: 182
Joined: Sun Jun 12, 2016 5:44 pm
Location: London
Full name: Vincent

Why does stockfish randomise draw evaluations?

Post by konsolas »

In search.cpp:value_draw, Stockfish randomly adds or subtracts 1 to the draw score if the depth is > 3: https://github.com/official-stockfish/S ... pp#L88-L92

The comment is that this helps "avoid 3fold-blindness". What exactly does this mean? Are there any concrete examples of positions where this random component in draw evaluations notably changes the search result?
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Why does stockfish randomise draw evaluations?

Post by zullil »

konsolas wrote: Sun Sep 01, 2019 12:55 pm In search.cpp:value_draw, Stockfish randomly adds or subtracts 1 to the draw score if the depth is > 3: https://github.com/official-stockfish/S ... pp#L88-L92

The comment is that this helps "avoid 3fold-blindness". What exactly does this mean? Are there any concrete examples of positions where this random component in draw evaluations notably changes the search result?
https://github.com/official-stockfish/S ... 7fc6509886
konsolas
Posts: 182
Joined: Sun Jun 12, 2016 5:44 pm
Location: London
Full name: Vincent

Re: Why does stockfish randomise draw evaluations?

Post by konsolas »

Thanks, that's very interesting.
User avatar
xr_a_y
Posts: 1871
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: Why does stockfish randomise draw evaluations?

Post by xr_a_y »

konsolas wrote: Sun Sep 01, 2019 9:51 pm Thanks, that's very interesting.
Vincent, did you tried that?
This seems to be winning some elo for Minic.
konsolas
Posts: 182
Joined: Sun Jun 12, 2016 5:44 pm
Location: London
Full name: Vincent

Re: Why does stockfish randomise draw evaluations?

Post by konsolas »

I'd love to, but I haven't worked on Topple much recently.