fix interactive option
This commit is contained in:
parent
5c4a2bb4f7
commit
3dafee21dd
1 changed files with 6 additions and 6 deletions
|
@ -220,12 +220,12 @@ namespace Hanabi
|
||||||
quiet_os << "Visited " << game.state->enumerated_states() << " states." << std::endl;
|
quiet_os << "Visited " << game.state->enumerated_states() << " states." << std::endl;
|
||||||
quiet_os << "Enumerated " << game.state->position_tablebase().size() << " unique game states. " << std::endl;
|
quiet_os << "Enumerated " << game.state->position_tablebase().size() << " unique game states. " << std::endl;
|
||||||
|
|
||||||
// If specified, we can now launch the interactive shell
|
}
|
||||||
if (parms.interactive.value_or(!parms.quiet))
|
// If specified, we can now launch the interactive shell
|
||||||
{
|
if (parms.interactive.value_or(!parms.quiet))
|
||||||
quiet_os << "\nDropping into interactive command line to explore result (type 'help'):" << std::endl;
|
{
|
||||||
cli(game);
|
quiet_os << "\nDropping into interactive command line to explore result (type 'help'):" << std::endl;
|
||||||
}
|
cli(game);
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue