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:
Marco Costalba
2012-03-06 10:09:37 +01:00
parent 843a5961e1
commit 4220f191d8
6 changed files with 114 additions and 111 deletions

View File

@@ -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()