X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=4b716dded6ec859ca24e7afa67216dcdd4865e0d;hp=a1dd07903269426201faf0b4bd30ed73c84e2f90;hb=8b2adcf99ebb58d0d9ba6ec4138427f469fc34ce;hpb=25113861552c9c09ce5dbd5a20510db2fd2e65b0 diff --git a/src/main.cpp b/src/main.cpp index a1dd0790..4b716dde 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[]) { @@ -63,12 +50,10 @@ int main(int argc, char* argv[]) { // Startup initializations init_bitboards(); - init_uci_options(); 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 +63,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;