コード例 #1
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 13 && p.getCChip() > 5 && p.getIChip() > 5 && p.getLChip() > 5)
     {
         p.addQPoint(10);
         return(p.getPlayerName() + " played " + thisImage + " for 10 Quality Points!");
     }
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED losing 1 game card");
 }
コード例 #2
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 6)
     {
         p.addLChip(2);
         p.discardPick();
         return (p.getPlayerName() + " played " + thisImage + " for 2 learning chips");
     }
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #3
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 6)
     {
         p.addLChip(2);
         p.discardPick();
         return(p.getPlayerName() + " played " + thisImage + " for 2 learning chips");
     }
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #4
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 13 && p.getCChip() > 5 && p.getIChip() > 5 && p.getLChip() > 5)
     {
         p.addQPoint(10);
         return (p.getPlayerName() + " played " + thisImage + " for 10 Quality Points!");
     }
     p.discardPick();
     return (p.getPlayerName() + " played " + thisImage + " FAILED losing 1 game card");
 }
コード例 #5
0
ファイル: Math123.cs プロジェクト: enba417/CECS-343-project
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 17 || p.getCurrentRoom() == 14) && p.getLChip() > 4)
     {
         p.addQPoint(5);
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points!");
     }
     p.addQPoint(-3);
     p.discardPick();
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #6
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 19 && p.getIChip() > 2)
     {
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return(p.getPlayerName() + " played " + thisImage + " for " + chose.getChoice());
     }
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #7
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 12 || p.getCurrentRoom() == 15) && p.getLChip() > 2 && p.getCChip() > 2 && p.getIChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality points and 1 game card");
     }
     p.discardPick();
     return (p.getPlayerName() + " played " + thisImage + " FAILED: lose a card");
 }
コード例 #8
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 19 && p.getIChip() > 2)
     {
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return (p.getPlayerName() + " played " + thisImage + " for " + chose.getChoice());
     }
     p.discardPick();
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #9
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 12 || p.getCurrentRoom() == 15) && p.getLChip() > 2 && p.getCChip() > 2 && p.getIChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality points and 1 game card");
     }
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED: lose a card");
 }
コード例 #10
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 17 || p.getCurrentRoom() == 14) && p.getLChip() > 4)
     {
         p.addQPoint(5);
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points!");
     }
     p.addQPoint(-3);
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #11
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 11 && p.getIChip() > 3)
     {
         p.addQPoint(3);
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return(p.getPlayerName() + " played " + thisImage + " for 3 Quality Points and " + chose.getChoice());
     }
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #12
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 12 || p.getCurrentRoom() == 15) && p.getIChip() > 1)
     {
         p.addQPoint(3);
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return (p.getPlayerName() + " played " + thisImage + " for 3 Quality Points" + chose.getChoice());
     }
     p.discardPick();
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }