]> git.sesse.net Git - stockfish/commitdiff
Merge Stats tables
authorMarco Costalba <mcostalba@gmail.com>
Sat, 3 Mar 2018 10:29:29 +0000 (11:29 +0100)
committerStéphane Nicolet <cassio@free.fr>
Sat, 3 Mar 2018 10:35:33 +0000 (11:35 +0100)
Use a recursive std::array with variadic template
parameters to get rid of the last redundacy.

The first template T parameter is the base type of
the array, the W parameter is the weight applied to
the bonuses when we update values with the << operator,
the D parameter limits the range of updates (range is
[-W * D, W * D]), and the last parameters (Size and
Sizes) encode the dimensions of the array.

This allows greater flexibility because we can now tweak
the range [-W * D, W * D] for each table.

Patch removes more lines than what adds and streamlines
the Stats soup in movepick.h

Closes PR#1422 and PR#1421

No functional change.


No differences found