X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=02f2b87d92f00a7046c335b7d42cfbb41bd5de57;hp=a1dd07903269426201faf0b4bd30ed73c84e2f90;hb=7f367e6019289e65b902a5ebf7e3686db5cefdef;hpb=25113861552c9c09ce5dbd5a20510db2fd2e65b0 diff --git a/src/main.cpp b/src/main.cpp index a1dd0790..02f2b87d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,23 +20,13 @@ // To profile with callgrind uncomment following line //#define USE_CALLGRIND - -//// -//// Includes -//// - #include #include #include #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;