File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -459,12 +459,10 @@ template <class Container, class T> auto make_filter_iterator(const Container &c
459459template <class T > T MixedStrategyProfile<T>::GetRegret(const GameStrategy &p_strategy) const
460460{
461461 CheckVersion ();
462- const GamePlayer player = p_strategy->GetPlayer ();
463- T payoff = GetPayoffDeriv (player->GetNumber (), p_strategy);
464- T best_other_payoff = maximize_function (filter_range (player->GetStrategies (), p_strategy),
465- [this , player](const GameStrategy &p_strategy) -> T {
466- return GetPayoffDeriv (player->GetNumber (), p_strategy);
467- });
462+ T payoff = GetPayoff (p_strategy);
463+ T best_other_payoff = maximize_function (
464+ filter_range (p_strategy->GetPlayer ()->GetStrategies (), p_strategy),
465+ [this ](const GameStrategy &p_strategy) -> T { return GetPayoff (p_strategy); });
468466 return std::max (best_other_payoff - payoff, static_cast <T>(0 ));
469467}
470468
You can’t perform that action at this time.
0 commit comments