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);
 }
Exemple #2
0
 public SmartPlayer()
 {
     this.chooseBestCardStrategy = new ChooseBestCardToPlayStrategy(this.cardTracker, this.AnnounceValidator, this.Cards);
 }