This commit is contained in:
Maximilian Keßler 2024-02-06 21:06:58 +01:00
parent 80290a85f9
commit 3985ffaac4
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -397,7 +397,7 @@ namespace Hanabi
if (prompt.find("actions") == 0)
{
std::vector<std::pair<Hanabi::Action, std::optional<boost::rational<Hanabi::probability_base_type>>>> reasonable_actions = game.state->get_reasonable_actions();
std::vector<std::pair<Hanabi::Action, std::optional<Hanabi::probability_t>>> reasonable_actions = game.state->get_reasonable_actions();
std::sort(reasonable_actions.begin(), reasonable_actions.end(),
[](std::pair<Hanabi::Action, std::optional<probability_t>> const & left,
std::pair<Hanabi::Action, std::optional<probability_t>> const & right){