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>
else
limits.depth = atoi(limit.c_str());
- if (fenFile != "default")
+ if (fenFile == "current")
+ {
+ fens.clear();
+ fens.push_back(Search::RootPosition.to_fen());
+ }
+ else if (fenFile != "default")
{
fens.clear();
string fen;
Position pos(StartFEN, false, Threads.main_thread()); // The root position
string cmd, token;
+ Search::RootPosition = pos;
+
while (token != "quit")
{
if (!args.empty())