public void AwardRubberPoints() { if (this.we.GotRubber()) { we.GetARubber(they.Vulnerable()); } if (this.they.GotRubber()) { they.GetARubber(we.Vulnerable()); } }
private static void HandleScores(PartnerScore bidders, PartnerScore opponent, Bid finalContract, int netTricks) { if (ContractWasMade(netTricks)) { // bidders got enough triks bidders.addScore(netTricks, finalContract.TricksNeeded() - book, finalContract, bidders.Vulnerable()); } else { // bidders went down tricks opponent.addScore(Math.Abs(netTricks), bidders.Vulnerable(), finalContract); } if (bidders.GotGame()) { int increase = (bidders.BelowRecord().Count > opponent.BelowRecord().Count ? bidders.BelowRecord().Count: opponent.BelowRecord().Count); // Use that to increase the the count of both scores by ^ bidders.GetAGame(increase); opponent.UpdateAboveLine(increase); } }