コード例 #1
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getCChip() > 4)
     {
         p.addQPoint(5);
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points!");
     }
     p.addQPoint(-3);
     return(p.getPlayerName() + " played " + thisImage + " FAILED: Lose 3 Quality Points");
 }
コード例 #2
0
ファイル: CHEM111.cs プロジェクト: enba417/CECS-343-project
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() < 10 && p.getCurrentRoom() > 2 && p.getCurrentRoom() != 4 && p.getCurrentRoom() != 6 && p.getCChip() > 5)
     {
         p.addQPoint(5);
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points");
     }
     p.setCurrentRoom(2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #3
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");
 }
コード例 #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
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getCChip() > 4)
     {
         p.addQPoint(5);
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points!");
     }
     p.addQPoint(-3);
     return (p.getPlayerName() + " played " + thisImage + " FAILED: Lose 3 Quality Points");
 }
コード例 #6
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 18 && p.getCChip() > 2)
     {
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return(p.getPlayerName() + " played " + thisImage + " for " + chose.getChoice());
     }
     p.addQPoint(-2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED: Lose 2 Quality Points");
 }
コード例 #7
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getLChip() > 2 && p.getCChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 1 game card");
     }
     p.setCurrentRoom(2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #8
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");
 }
コード例 #9
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 18 && p.getCChip() > 2)
     {
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return (p.getPlayerName() + " played " + thisImage + " for " + chose.getChoice());
     }
     p.addQPoint(-2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED: Lose 2 Quality Points");
 }
コード例 #10
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getLChip() > 2 && p.getCChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 1 game card");
     }
     p.setCurrentRoom(2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #11
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getCChip() > 2)
     {
         p.addQPoint(5);
         p.addIChip(1);
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 1 integrity chip");
     }
     p.setCurrentRoom(2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #12
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 0 && p.getCChip() > 2)
     {
         p.addQPoint(5);
         p.addIChip(1);
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 1 integrity chip");
     }
     p.setCurrentRoom(2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #13
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 11 && p.getIChip() > 2 && p.getCChip() > 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 and " + chose.getChoice());
     }
     p.addQPoint(-1);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #14
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");
 }
コード例 #15
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() < 10 && p.getCurrentRoom() > 2 && p.getCurrentRoom() != 4 && p.getCurrentRoom() != 6 && p.getCChip() > 5)
     {
         p.addQPoint(5);
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points");
     }
     p.setCurrentRoom(2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }