Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 protected abstract void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e);
Exemplo n.º 4
0
 protected abstract void OnTimePassedEvent(object sender, ExtendedTimePassedEventArgs e);