Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
63 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters