mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +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:
@@ -105,10 +105,7 @@ void uci_loop() {
|
||||
pos.flip_me();
|
||||
|
||||
else if (token == "eval")
|
||||
{
|
||||
EvalRootColor = pos.side_to_move();
|
||||
cout << trace_evaluate(pos) << endl;
|
||||
}
|
||||
cout << Eval::trace(pos) << endl;
|
||||
|
||||
else if (token == "key")
|
||||
cout << "key: " << hex << pos.key()
|
||||
|
||||
Reference in New Issue
Block a user