public ChooseBestCardToPlayStrategy(CardTracker cardTracker, IAnnounceValidator announceValidator, ICollection <Card> cards) : base(cardTracker, announceValidator, cards) { this.playingFirstAndRulesApplyStrategy = new PlayingFirstAndRulesApplyStrategy(cardTracker, announceValidator, cards); this.playingFirstAndRulesDoNotApplyStrategy = new PlayingFirstAndRulesDoNotApplyStrategy(cardTracker, announceValidator, cards); this.playingSecondAndRulesApplyStrategy = new PlayingSecondAndRulesApplyStrategy(cardTracker, announceValidator, cards); this.playingSecondAndRulesDoNotApplyStrategy = new PlayingSecondAndRulesDoNotApplyStrategy(cardTracker, announceValidator, cards); }
public SmartPlayer() { this.chooseBestCardStrategy = new ChooseBestCardToPlayStrategy(this.cardTracker, this.AnnounceValidator, this.Cards); }