ID went further than MAX_DEPTH | bench 3761943
This commit is contained in:
1 parent
1279a11808
commit
9624e565fd
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ inline PVLine pvLine;
|
||||
Stopwatch sw;
|
||||
|
||||
void InitLMRTable() {
|
||||
for (int depth = 0; depth < MAX_DEPTH; depth++) {
|
||||
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
|
||||
for (int move = 0; move < MAX_MOVES; move++) {
|
||||
if (depth == 0 || move == 0) {
|
||||
lmrTable[depth][move] = 0;
|
||||
@@ -341,7 +341,7 @@ static SearchResults ID(Board &board, SearchParams params) {
|
||||
int elapsed = 0;
|
||||
sw.Restart();
|
||||
|
||||
for (int depth = 1; depth <= 99; depth++) {
|
||||
for (int depth = 1; depth <= MAX_DEPTH; depth++) {
|
||||
timeToSearch = std::max((fullTime / 20) + (inc / 2), 4);
|
||||
int softTime = timeToSearch * 0.65;
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ inline bool searchStopped = false;
|
||||
// [id][ply]
|
||||
inline int killerMoves[2][64];
|
||||
|
||||
inline int lmrTable[MAX_DEPTH][MAX_MOVES];
|
||||
inline int lmrTable[MAX_DEPTH+1][MAX_MOVES];
|
||||
|
||||
void InitLMRTable();
|
||||
|
||||
|
||||
Reference in new issue
Block a user