removed ReadEntry function | bench 10412097
This commit is contained in:
1 parent
feb11b0b08
commit
311fc28c1c
2 files changed
+17
-29
No files matched your search
@@ -1,24 +1,5 @@
|
||||
#include "tt.h"
|
||||
|
||||
TTEntry TTable::ReadEntry(U64 &hashKey, int depth, int alpha, int beta) {
|
||||
TTEntry *current = &table[hashKey % table.size()];
|
||||
|
||||
if (current->hashKey == hashKey) {
|
||||
if (current->depth >= depth) {
|
||||
if (current->nodeType == PV){
|
||||
return *current;
|
||||
} else if (current->nodeType == AllNode && current->score <= alpha) {
|
||||
return *current;
|
||||
} else if (current->nodeType == CutNode && current->score >= beta) {
|
||||
return *current;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// returning invalid value
|
||||
return invalidEntry;
|
||||
}
|
||||
|
||||
void TTable::WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move bestMove) {
|
||||
TTEntry *current = &table[hashKey % table.size()];
|
||||
|
||||
|
||||
Reference in new issue
Block a user