improve output

This commit is contained in:
Maximilian Keßler 2024-01-13 03:39:53 +01:00
parent 84b95e7214
commit b30024d5a3
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 3 additions and 6 deletions

View file

@ -136,6 +136,7 @@ namespace Hanabi
print_probability(std::cout, probability) << std::endl;
}
}
quiet_os << "Enumerated " << game.state->position_tablebase().size() << " states." << std::endl;
return EXIT_SUCCESS;
}
@ -194,7 +195,7 @@ namespace Hanabi
}
else
{
quiet_os << "Analysing state: \n\n" << *game.state << "\n" << std::endl;
quiet_os << "\nAnalysing state...\n" << std::endl;
auto const start = std::chrono::high_resolution_clock::now();
probability_t const result = game.state->evaluate_state();
auto const end = std::chrono::high_resolution_clock::now();

View file

@ -10,11 +10,7 @@ namespace Hanabi
os << "play " + to_string(action.card);
break;
case ActionType::discard:
os << "discard";
if (action.card != Cards::trash)
{
os << " " + to_string(action.card);
}
os << "discard " + to_string(action.card);
break;
case ActionType::clue:
os << "clue";