/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
- Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
- Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
- Copyright (C) 2015-2017 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
+ Copyright (C) 2004-2020 The Stockfish developers (see AUTHORS file)
Stockfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <iostream>
#include "bitboard.h"
+#include "endgame.h"
#include "position.h"
#include "search.h"
#include "thread.h"
std::cout << engine_info() << std::endl;
+ CommandLine::init(argc, argv);
UCI::init(Options);
+ Tune::init();
PSQT::init();
Bitboards::init();
Position::init();
Bitbases::init();
- Search::init();
- Pawns::init();
- Tablebases::init(Options["SyzygyPath"]);
- TT.resize(Options["Hash"]);
- Threads.init(Options["Threads"]);
+ Endgames::init();
+ Threads.set(size_t(Options["Threads"]));
Search::clear(); // After threads are up
+ Eval::NNUE::init();
UCI::loop(argc, argv);
- Threads.exit();
+ Threads.set(0);
return 0;
}