Use int instead of Value for history related stats.

history related scores are not related to evaluation based scores.
For example, can easily exceed the range -VALUE_INFINITE,VALUE_INFINITE.
As such the current type is confusing, and a plain int is a better match.

tested for no regression:

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 43693 W: 7909 L: 7827 D: 27957

No functional change.

Closes #1070
This commit is contained in:
Joost VandeVondele
2017-04-23 07:57:48 -07:00
committed by Joona Kiiski
parent ced29248c9
commit 9da3b44ddc
5 changed files with 23 additions and 23 deletions

View File

@@ -37,7 +37,7 @@ namespace {
// An insertion sort, which sorts moves in descending order up to and including a given limit.
// The order of moves smaller than the limit is left unspecified.
// To keep the implementation simple, *begin is always included in the list of sorted moves.
void partial_insertion_sort(ExtMove* begin, ExtMove* end, Value limit)
void partial_insertion_sort(ExtMove* begin, ExtMove* end, int limit)
{
for (ExtMove *sortedEnd = begin + 1, *p = begin + 1; p < end; ++p)
if (p->value >= limit)
@@ -243,7 +243,7 @@ Move MovePicker::next_move(bool skipQuiets) {
score<QUIETS>();
partial_insertion_sort(cur, endMoves,
depth < 3 * ONE_PLY ? VALUE_ZERO : Value(INT_MIN));
depth < 3 * ONE_PLY ? 0 : INT_MIN);
++stage;
case QUIET: