Question: Scoring: detecting each card set is scored separately and is worth an equal number of points; in tests worth 50% of points only the strongest

Scoring:\ detecting each card set is scored separately and is worth an equal number of points;\ in tests worth

50%

of points only the strongest set's set_name is checked. Checking selected_cards field of the Result object is omitted in these tests.\ Card sets:\ There are six card sets ordered by their strength from the weakest (single card) to the strongest (a tuiple and a pair).\ Set 1: single card\ Name: 'single card"\ Description: A single card of the highest rank; the suit does not matter.\ For example, for cards = ["2H", "4H", "7G", "90", "100", "Ks"l, your function should return:\ "set_name" = "single card",\ }\ Set 2: pair\ Name:"pair"\ Description: Two cards sharing the same ranks suits do not matter. If there are multiple pairs, return any one with the highest rank.\ \ For example, for cards = [AS", "10H", "BH" "10S" "8D", one of the correct results is:

 Scoring:\ detecting each card set is scored separately and is worth

For example, for cards = [AS", "10H"," "8H", "10S", "8D", one of the correot results is: 1 "set_name" = "pair", "selected_cards" =[ "10H", "10S"] B Set 3: triple - Name: "triple" - Description: Three cards sharing the same rank; suits do not matter. If there are muliple ways to choose a triple, return any with the highest rank. For example, for cards = ["AS", "JS", "AH", "AD"." "100", "AC"], one of the correct results is: "set_name" = "triple", "selected_cards" =[ "AH", "AD", "AC"] Set 4: five in a row - Name:"five in a row" - Description: Five cards of consecutive ranks starting with the highest possible ranks sulits do not matter. Ifithere are mulitiple ways to choose five such cards, returnany

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!