public void _landOn_Community()
 {
     CommunityCards community = new CommunityCards("Jim", false, 10);
     Player thePlayer = new Player("Jim");
     thePlayer.setBalance(100);
     Board.access().addPlayer(thePlayer);
     String response = community.landOn(ref thePlayer);
     StringAssert.Contains("You've drawn Community Card", response);
 }
Beispiel #2
0
 public void checkLandOnCommunity(ref Player player)
 {
     if ((this.getLocation() == 2) || (this.getLocation() == 17) || (this.getLocation() == 33))
     {
         Console.WriteLine("{0} picks up a Community card\n", this.getName());
         //landOnCommunity = true;
         CommunityCards communityCard = new CommunityCards();
         communityCard.landOn(ref player);
     }
 }