Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can some one do this plzz (c) (20 points) Write a class BridgeUtilities. This class is not meant to represent a new data type You
can some one do this plzz
(c) (20 points) Write a class BridgeUtilities. This class is not meant to represent a new data type You will write this class simply to group together methods that are needed to implement a basic point-count system for the game Bridge. As such, this class has no attributes. To evaluate the points associated to a hand of cards, we will be using a combination of high card points (HCP) and distributional points, as follows High Card Points. The top four cards in each suit are given point values relative to their rank as follow:s Every Ace is worth 4 points Every King is worth 3 points Every Queen is worth 2 points Every Jack is worth 1 point All other cards are worth 0. Remember that the values associated to an ace, king, queen, and jack are equal to 1, 13, 12, and 11 respectively Distributional Points. In addition to HCP, another factor that determines the strength of the a bridge hand is the length of each suit. Since there are 13 cards and 4 suits, a "balanced" hand would have 4 cards in one suit and 3 cards in the other three suits. In bridge, a "balanced" hand is a very weak hand. Thus, if the hand is "unbalanced" it is considered to be good. For this reason, the hand is worth 1 extra point for every card more than 4 in each suit. For example, if the hand has 5 cards of the same suit one extra point is given, if it has 6 cards of the same suit 2 extra points are given, if it has 7 cards of the same suit 3 extra points are given, and so on. For example, suppose you were dealt the following hand IC, 2C, JC, KC, 9C , 3H, 4H, 5H, 6H, 7H , KH, 1D, 1S Then, the evaluation of your hand would go as follows . High Cards PointsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started