public void _landOn_chance() { ChanceCards chance = new ChanceCards("Jim", false, 10); Player play = new Player("Jim"); play.setBalance(100); Board.access().addPlayer(play); String response = chance.landOn(ref play); StringAssert.Contains("You've drawn a Chance Card", response); }
public void checkLandOnChance(ref Player player) { if ((this.getLocation() == 7) || (this.getLocation() == 22) || (this.getLocation() == 36)) { Console.WriteLine("{0} picks up a Chance card\n", this.getName()); //landOnChance = true; ChanceCards chance = new ChanceCards(); chance.landOn(ref player); } }