9/13/2023 0 Comments Card game golf scoring![]() Returns 1 for more than, -1 for less than or 0 for equal. Takes the two ranks in currying syntax (a)(b). If you have any questions, don't hesitate to ask. Here are some sample inputs and outputs: 1, 4 => more than (ace scores 11 points, 4 scores 0 points, first is more than second.Ĩ, 3 => less than (8 scores 2, 3 scores 10, first is less than second. This question is code-golf, so lowest byte-count wins. Either a full function or a program is permitted.Your program may output any three values to indicate less than, greater than, and equal to, however, it must output the same value for each condition each time.Your task is to create a full program or function which accepts two numbers 1-10 representing card ranks, and outputs (or returns) whether the point value of the first card is greater than, lesser than, or equal to the point value of the second card. The ranking of the cards, from highest to lowest, are: +-+-+ Cards 2 - 7 are the numeric cards, and cards 8, 9, and 10 are the face cards. We will be ignoring the suits for this challenge. There are forty cards in a deck, 1-10 in each of the four suits: cups, swords, clubs, and coins. Challengeīriscola is played with a deck of Italian playing cards. In this challenge, given two cards, you will output whether the first one scores more, less, or the same number of points as the second in Briscola's point system. Briscola is well known for its bizarre point system. It is a trick-taking card game, like Bridge. Briscola is one of Italy's most popular card games.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |