improve output
This commit is contained in:
parent
84b95e7214
commit
b30024d5a3
2 changed files with 3 additions and 6 deletions
|
@ -136,6 +136,7 @@ namespace Hanabi
|
||||||
print_probability(std::cout, probability) << std::endl;
|
print_probability(std::cout, probability) << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
quiet_os << "Enumerated " << game.state->position_tablebase().size() << " states." << std::endl;
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +195,7 @@ namespace Hanabi
|
||||||
}
|
}
|
||||||
else
|
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();
|
auto const start = std::chrono::high_resolution_clock::now();
|
||||||
probability_t const result = game.state->evaluate_state();
|
probability_t const result = game.state->evaluate_state();
|
||||||
auto const end = std::chrono::high_resolution_clock::now();
|
auto const end = std::chrono::high_resolution_clock::now();
|
||||||
|
|
|
@ -10,11 +10,7 @@ namespace Hanabi
|
||||||
os << "play " + to_string(action.card);
|
os << "play " + to_string(action.card);
|
||||||
break;
|
break;
|
||||||
case ActionType::discard:
|
case ActionType::discard:
|
||||||
os << "discard";
|
os << "discard " + to_string(action.card);
|
||||||
if (action.card != Cards::trash)
|
|
||||||
{
|
|
||||||
os << " " + to_string(action.card);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ActionType::clue:
|
case ActionType::clue:
|
||||||
os << "clue";
|
os << "clue";
|
||||||
|
|
Loading…
Reference in a new issue