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 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(); }
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()); }
public virtual void Respond(IGameClient client, ActivityModel activity, GameViewModel state) { client.SendChatMessage(_comment); }