mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Introduce Eval namespace
Wrap evaluation related stuff and reshuffle a bit the code. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -48,6 +48,7 @@ namespace Search {
|
||||
using std::string;
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using Eval::evaluate;
|
||||
using namespace Search;
|
||||
|
||||
namespace {
|
||||
@@ -251,7 +252,7 @@ void Search::think() {
|
||||
|
||||
Position& pos = RootPosition;
|
||||
Chess960 = pos.is_chess960();
|
||||
EvalRootColor = pos.side_to_move();
|
||||
Eval::RootColor = pos.side_to_move();
|
||||
SearchTime.restart();
|
||||
TimeMgr.init(Limits, pos.startpos_ply_counter());
|
||||
TT.new_search();
|
||||
|
||||
Reference in New Issue
Block a user