protected override void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e) { if (!e.HasRoundPassed && RoundsPassed == 0) { return; } if (RoundsPassed < Domain.NumberOfRounds - 1) { RoundRobinOffer(BestFScoreUtilityOffers.Values, e.RemainingTime); } else { RoundRobinOffer(BestCombinedUtilityOffers.Values, e.RemainingTime); } }
protected override void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e) { if (!e.HasRoundPassed && RoundsPassed != Domain.NumberOfRounds - 1) { return; } if (RoundsPassed == 0) { return; } else if (RoundsPassed < Domain.NumberOfRounds - 1) { CompareOffer(OpponentOffer, false); SendOffer(BestFScoreUtilityOffers.Values.ElementAt(RoundsPassed % BestFScoreUtilityOffers.Count).Offer); } else { RoundRobinOffer(BestCombinedUtilityOffers.Values, e.RemainingTime); } }
protected abstract void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e);