1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Half History Max

STC
LLR: 3.35 (-2.94,2.94) [-0.50,3.50]
Total: 17993 W: 3740 L: 3508 D: 10745

LTC
LLR: 3.25 (-2.94,2.94) [0.00,4.00]
Total: 21346 W: 3691 L: 3453 D: 14202

Bench: 7694316

Resolves #120
This commit is contained in:
lucasart 2014-11-17 07:04:58 +08:00 committed by Gary Linscott
parent 4840643fed
commit 3b1f552b08
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@
template<bool Gain, typename T> template<bool Gain, typename T>
struct Stats { struct Stats {
static const Value Max = Value(2000); static const Value Max = Value(250);
const T* operator[](Piece pc) const { return table[pc]; } const T* operator[](Piece pc) const { return table[pc]; }
void clear() { std::memset(table, 0, sizeof(table)); } void clear() { std::memset(table, 0, sizeof(table)); }

View file

@ -1252,7 +1252,7 @@ moves_loop: // When in check and at SpNode search starts from here
// Increase history value of the cut-off move and decrease all the other // Increase history value of the cut-off move and decrease all the other
// played quiet moves. // played quiet moves.
Value bonus = Value(4 * int(depth) * int(depth)); Value bonus = Value(int(depth) * int(depth));
History.update(pos.moved_piece(move), to_sq(move), bonus); History.update(pos.moved_piece(move), to_sq(move), bonus);
for (int i = 0; i < quietsCnt; ++i) for (int i = 0; i < quietsCnt; ++i)
{ {