Teach 'bench' to run current position

Now that we can call bench from command prompt
has a sense to teach bench to run the current
set position. To do this is enough to call bench
with 'current' as fen source parameter.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-04-07 12:04:03 +01:00
parent ce5b972736
commit cc04a745e2
2 changed files with 8 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ void uci_loop(const string& args) {
Position pos(StartFEN, false, Threads.main_thread()); // The root position
string cmd, token;
Search::RootPosition = pos;
while (token != "quit")
{
if (!args.empty())