Ejemplo n.º 1
0
        public override bool Play(Player player)
        {
            if (player.Name == "Human Player")
            {
                _reward = "1 Learning Chip";
                player.LearningChips++;
                if (MessageBox.Show("Choose!", "Do you want to discard a game card to get another Learning Chips?",
                                    MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    _reward = "2 Learning Chips and 1 discarded card";
                    player.LearningChips++;
                    player.DiscardCard(this);
                }
            }
            else
            {
                var bonus = new Random().Next(2);
                switch (bonus)
                {
                case 0:
                    _reward = "1 Learning Chip";
                    player.LearningChips++;
                    break;

                case 1:
                    _reward = "2 Learning Chips and 1 discarded card";
                    player.LearningChips++;
                    player.DiscardCard(this);
                    break;
                }
            }
            return(true);
        }
Ejemplo n.º 2
0
 public override bool Play(Player player)
 {
     if (player.IntegrityChips >= 3)
     {
         player.GetAChipOfHisChoice();
         return(true);
     }
     player.DiscardCard(this);
     return(false);
 }
Ejemplo n.º 3
0
 public override bool Play(Player player)
 {
     if (player.LearningChips >= 8 && player.CraftChips >= 8 && player.IntegrityChips >= 8)
     {
         player.QualityPoints += 5;
         return(true);
     }
     player.QualityPoints -= 2;
     player.DiscardCard(this);
     return(false);
 }
Ejemplo n.º 4
0
 public override bool Play(Player player)
 {
     if (player.LearningChips >= 2)
     {
         player.QualityPoints += 5;
         player.GetAChipOfHisChoice();
         return(true);
     }
     player.DiscardCard(this);
     return(false);
 }
Ejemplo n.º 5
0
 public override bool Play(Player player)
 {
     if (player.LearningChips >= 3 && player.CraftChips >= 3 && player.IntegrityChips >= 3)
     {
         player.QualityPoints += 5;
         player.DrawCard();
         return true;
     }
     player.DiscardCard(this);
     return false;
 }
Ejemplo n.º 6
0
 public override bool Play(Player player)
 {
     if (player.IntegrityChips >= 2)
     {
         player.QualityPoints += 3;
         player.GetAChipOfHisChoice();
         return true;
     }
     player.DiscardCard(this);
     return false;
 }
Ejemplo n.º 7
0
 public override bool Play(Player player)
 {
     if (player.CraftChips >= 8)
     {
         player.LearningChips++;
         player.CraftChips++;
         player.IntegrityChips++;
         return true;
     }
     player.QualityPoints -= 3;
     player.DiscardCard(this);
     return false;
 }
Ejemplo n.º 8
0
 public override bool Play(Player player)
 {
     if (player.Name == "Human Player")
     {
         _reward = "1 Learning Chip";
         player.LearningChips++;
         if (MessageBox.Show("Choose!", "Do you want to discard a game card to get another Learning Chips?",
                 MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             _reward = "2 Learning Chips and 1 discarded card";
             player.LearningChips++;
             player.DiscardCard(this);
         }
     }
     else
     {
         var bonus = new Random().Next(2);
         switch (bonus)
         {
             case 0:
                 _reward = "1 Learning Chip";
                 player.LearningChips++;
                 break;
             case 1:
                 _reward = "2 Learning Chips and 1 discarded card";
                 player.LearningChips++;
                 player.DiscardCard(this);
                 break;
         }
     }
     return true;
 }