mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix bounds of FutilityMoveCounts
This is a left-over from ONE_PLY == 2. No functional change. Resolves #107
This commit is contained in:
parent
1b0df1ae14
commit
d709a5f1c5
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ namespace {
|
||||||
inline Value razor_margin(Depth d) { return Value(512 + 32 * d); }
|
inline Value razor_margin(Depth d) { return Value(512 + 32 * d); }
|
||||||
|
|
||||||
// Futility lookup tables (initialized at startup) and their access functions
|
// Futility lookup tables (initialized at startup) and their access functions
|
||||||
int FutilityMoveCounts[2][32]; // [improving][depth]
|
int FutilityMoveCounts[2][16]; // [improving][depth]
|
||||||
|
|
||||||
inline Value futility_margin(Depth d) {
|
inline Value futility_margin(Depth d) {
|
||||||
return Value(200 * d);
|
return Value(200 * d);
|
||||||
|
@ -135,7 +135,7 @@ void Search::init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init futility move count array
|
// Init futility move count array
|
||||||
for (int d = 0; d < 32; ++d)
|
for (int d = 0; d < 16; ++d)
|
||||||
{
|
{
|
||||||
FutilityMoveCounts[0][d] = int(2.4 + 0.773 * pow(d + 0.00, 1.8));
|
FutilityMoveCounts[0][d] = int(2.4 + 0.773 * pow(d + 0.00, 1.8));
|
||||||
FutilityMoveCounts[1][d] = int(2.9 + 1.045 * pow(d + 0.49, 1.8));
|
FutilityMoveCounts[1][d] = int(2.9 + 1.045 * pow(d + 0.49, 1.8));
|
||||||
|
|
Loading…
Add table
Reference in a new issue