fix interactive option

This commit is contained in:
Maximilian Keßler 2024-02-09 16:39:02 +01:00
parent 5c4a2bb4f7
commit 3dafee21dd
Signed by: max
GPG Key ID: BCC5A619923C0BA5

View File

@ -220,12 +220,12 @@ namespace Hanabi
quiet_os << "Visited " << game.state->enumerated_states() << " 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))
{
quiet_os << "\nDropping into interactive command line to explore result (type 'help'):" << std::endl;
cli(game);
}
}
// 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);
}
return EXIT_SUCCESS;
}