Skip to content

Commit

Permalink
Never clear stats
Browse files Browse the repository at this point in the history
Based on an idea and patch by VoyagerOne.

Small simplification, but was tedted for an ELO gain anyway.

STC:
LLR: 2.95 (-2.94,2.94) [-1.00,4.00]
Total: 5375 W: 1119 L: 977 D: 3279

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 17893 W: 2984 L: 2792 D: 12117

bench 8322847
  • Loading branch information
lucasart committed May 6, 2015
1 parent 7231b18 commit 946fa47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/movepick.h
Expand Up @@ -21,7 +21,6 @@
#define MOVEPICK_H_INCLUDED

#include <algorithm> // For std::max
#include <cstring> // For std::memset

#include "movegen.h"
#include "position.h"
Expand All @@ -44,7 +43,6 @@ struct Stats {

const T* operator[](Piece pc) const { return table[pc]; }
T* operator[](Piece pc) { return table[pc]; }
void clear() { std::memset(table, 0, sizeof(table)); }

void update(Piece pc, Square to, Move m) {

Expand Down
4 changes: 0 additions & 4 deletions src/search.cpp
Expand Up @@ -339,10 +339,6 @@ namespace {
beta = VALUE_INFINITE;

TT.new_search();
History.clear();
CounterMovesHistory.clear();
Gains.clear();
Countermoves.clear();

size_t multiPV = Options["MultiPV"];
Skill skill(Options["Skill Level"]);
Expand Down

0 comments on commit 946fa47

Please sign in to comment.