]> git.sesse.net Git - stockfish/blobdiff - src/main.cpp
Cleanup debug counters
[stockfish] / src / main.cpp
index a1dd07903269426201faf0b4bd30ed73c84e2f90..02f2b87d92f00a7046c335b7d42cfbb41bd5de57 100644 (file)
 // To profile with callgrind uncomment following line
 //#define USE_CALLGRIND
 
-
-////
-//// Includes
-////
-
 #include <cstdio>
 #include <iostream>
 #include <string>
 
 #include "bitboard.h"
-#include "bitcount.h"
-#include "endgame.h"
 #include "evaluate.h"
-#include "material.h"
-#include "misc.h"
 #include "position.h"
-#include "search.h"
 #include "thread.h"
 #include "ucioption.h"
 
@@ -48,10 +38,7 @@ using namespace std;
 
 extern bool execute_uci_command(const string& cmd);
 extern void benchmark(int argc, char* argv[]);
-
-////
-//// Functions
-////
+extern void init_kpk_bitbase();
 
 int main(int argc, char* argv[]) {
 
@@ -67,8 +54,7 @@ int main(int argc, char* argv[]) {
   Position::init_zobrist();
   Position::init_piece_square_tables();
   init_eval(1);
-  init_bitbases();
-  init_search();
+  init_kpk_bitbase();
   init_threads();
 
 #ifdef USE_CALLGRIND
@@ -78,7 +64,7 @@ int main(int argc, char* argv[]) {
   if (argc < 2)
   {
       // Print copyright notice
-      cout << engine_name() << " by " << engine_author() << endl;
+      cout << engine_name() << " by " << engine_authors() << endl;
 
       if (CpuHasPOPCNT)
           cout << "Good! CPU has hardware POPCNT." << endl;