コード例 #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
 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");
 }
コード例 #3
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");
 }
コード例 #4
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");
 }
コード例 #5
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");
 }
コード例 #6
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() > 10 && p.getLChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         p.addExtraCard();
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 2 game cards");
     }
     p.addQPoint(-5);
     p.setCurrentRoom(20);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #7
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() > 10 && p.getLChip() > 2)
     {
         p.addQPoint(5);
         p.addExtraCard();
         p.addExtraCard();
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and 2 game cards");
     }
     p.addQPoint(-5);
     p.setCurrentRoom(20);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #8
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 16 && p.getLChip() > 3)
     {
         p.addCChip(2);
         return(p.getPlayerName() + " played " + thisImage + " for 2 craft chips");
     }
     p.addQPoint(-2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #9
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 12 || p.getCurrentRoom() == 15) && p.getLChip() > 5)
     {
         p.addQPoint(5);
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points");
     }
     p.setCurrentRoom(2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #10
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");
 }
コード例 #11
0
 public override string Play(Player p)
 {
     if ((p.getCurrentRoom() == 12 || p.getCurrentRoom() == 15) && p.getLChip() > 5)
     {
         p.addQPoint(5);
         return (p.getPlayerName() + " played " + thisImage + " for 5 Quality Points");
     }
     p.setCurrentRoom(2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #12
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 16 && p.getLChip() > 3)
     {
         p.addCChip(2);
         return (p.getPlayerName() + " played " + thisImage + " for 2 craft chips");
     }
     p.addQPoint(-2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #13
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");
 }
コード例 #14
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 7 && p.getLChip() > 1)
     {
         p.addLChip(1);
         p.addExtraCard();
         return(p.getPlayerName() + " played " + thisImage + " for 1 learning chip and 1 game card");
     }
     p.addQPoint(-2);
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #15
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");
 }
コード例 #16
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");
 }
コード例 #17
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 7 && p.getLChip() > 1)
     {
         p.addLChip(1);
         p.addExtraCard();
         return (p.getPlayerName() + " played " + thisImage + " for 1 learning chip and 1 game card");
     }
     p.addQPoint(-2);
     return (p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #18
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");
 }
コード例 #19
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");
 }
コード例 #20
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");
 }
コード例 #21
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");
 }
コード例 #22
0
 public override string Play(Player p)
 {
     if (p.getCurrentRoom() == 20 && p.getLChip() > 1)
     {
         p.addQPoint(5);
         choseChip chose = new choseChip(1, 1, 1, p);
         p.addChipChosen(chose.getChoice());
         return(p.getPlayerName() + " played " + thisImage + " for 5 Quality Points and " + chose.getChoice());
     }
     p.discardPick();
     return(p.getPlayerName() + " played " + thisImage + " FAILED");
 }
コード例 #23
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");
 }