protected override void TalkSmack(CardPileViewModel pile, IGameClient client)
        {
            base.TalkSmack(pile, client);

            if (pile.Name == "Province")
                client.SendChatMessage("Province muthafucka!");

            if (pile.Name == "Colony")
                client.SendChatMessage("COLONY! SUCK IT!");
        }
예제 #2
0
        protected override void TalkSmack(CardPileViewModel pile, IGameClient client)
        {
            base.TalkSmack(pile, client);

            if (pile.Name == "Province")
            {
                client.SendChatMessage("Province muthafucka!");
            }

            if (pile.Name == "Colony")
            {
                client.SendChatMessage("COLONY! SUCK IT!");
            }
        }
        protected override CardPileViewModel SelectPile(GameViewModel state, IGameClient client)
        {
            var options = GetValidBuys(state)
                .Where(pile => AISupportedActions.All.Contains(pile.Name))
                .OrderByDescending(pile => pile.Cost)
                .ThenBy(pile => _random.Next(100))
                .ToList();

            var message = string.Format("I considered {0}.", string.Join(", ", options.Select(x => x.Name).ToArray()));
            client.SendChatMessage(message);

            return options.FirstOrDefault();
        }
예제 #4
0
        protected override CardPileViewModel SelectPile(GameViewModel state, IGameClient client)
        {
            var options = GetValidBuys(state)
                          .Where(pile => AISupportedActions.All.Contains(pile.Name))
                          .OrderByDescending(pile => pile.Cost)
                          .ThenBy(pile => _random.Next(100))
                          .ToList();

            var message = string.Format("I considered {0}.", string.Join(", ", options.Select(x => x.Name).ToArray()));

            client.SendChatMessage(message);

            return(options.FirstOrDefault());
        }
예제 #5
0
 public virtual void Respond(IGameClient client, ActivityModel activity, GameViewModel state)
 {
     client.SendChatMessage(_comment);
 }