This software is designed to handle the contract and scoring aspects of the popular card game, Bridge. It includes a comprehensive class that allows users to easily manage game contracts and scores.
To give you an idea on how it works, let's take a look at an example in which the contract is 4S by North, not vulnerable, redoubled, and taking 11 tricks. All you need to do is call the following line of code:
my $contract = Games::Cards::Bridge::Contract->new( declarer=>'N', trump=>'S', bid=>4, made=>5, vul=>0, penalty=>2);
With the object created, you can then access the duplicate score by calling:
my $pts = $contract->duplicate_score;
You can also retrieve the rubber score by calling:
my ( $declarer_above_line, $declarer_below_line, $defense_above_line ) = $contract->rubber_score;
All in all, Games::Cards::Bridge::Contract is an efficient solution for handling the complexities of bridge scoring.
Version 0.02: N/A