]> git.sesse.net Git - stockfish/commit
Fix null reduction formula
authorMarco Costalba <mcostalba@gmail.com>
Mon, 27 Jan 2014 06:36:26 +0000 (07:36 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 27 Jan 2014 07:18:48 +0000 (08:18 +0100)
commitf434cea287d3fae6b719816df0aa89a3d8579fa9
tree1b715d28489d953e238f929139cf04a06c2c66c9
parent216972186ea861c99d3a7bccabfff842ef87933c
Fix null reduction formula

Depth is already dependent on the actual value
of ONE_PLY, in particular can be expressed like:

Depth = n * ONE_PLY

And because formula is used to calculate R that is
also dependent on the value of ONE_PLY and can be
expressed like:

R = x * ONE_PLY

We don't want to divide depth by a 'ply' value but
directly by an integer number.

Spotted by sf-x

No functional change.
src/search.cpp