]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.h
Introduce Null Threat extension
[stockfish] / src / evaluate.h
index 18f4ab0adcb562bef9dabfb9fbe0147960a81715..accb7d632a5694ba6c6be32d978f76dea41f40e4 100644 (file)
@@ -1,7 +1,7 @@
 /*
   Stockfish, a UCI chess playing engine derived from Glaurung 2.1
   Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
-  Copyright (C) 2008-2010 Marco Costalba, Joona Kiiski, Tord Romstad
+  Copyright (C) 2008-2012 Marco Costalba, Joona Kiiski, Tord Romstad
 
   Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
 #if !defined(EVALUATE_H_INCLUDED)
 #define EVALUATE_H_INCLUDED
 
+#include "misc.h"
 #include "types.h"
 
 class Position;
 
+namespace Eval {
+
+extern void init();
 extern Value evaluate(const Position& pos, Value& margin);
-extern std::string trace_evaluate(const Position& pos);
-extern void init_eval(int threads);
-extern void quit_eval();
-extern void read_evaluation_uci_options(Color sideToMove);
+extern std::string trace(const Position& pos);
+
+const int TableSize = 262144;
+
+struct Entry {
+  Key key;
+  Value value;
+  int16_t margins[2];
+};
+
+struct Table : HashTable<Entry, TableSize> {};
+
+}
 
 #endif // !defined(EVALUATE_H_INCLUDED)