A problem with poker brand type analysis

xiaoxiao2021-03-06  21

Previously, in the company's project development, I was responsible for solving such a problem: in the landlord game, analyze this hand style according to the player's card. Everyone knows that in the landlord game, there is a total of eleven types of brand: Rockets: Double king (king and Xiao Wang). Bomb: Four Simplified Cards (such as four 7). Single card: single card (such as Porcea 5). Both cards (such as plum blossom 4 square 4). Three cards: three cards (such as three J). Three bands one: a value of the same value a single or a pair of cards. For example: 333 6 or 444 99 single smooth: Five or more consecutive single cards (such as: 45678 or 78910 Jqk). Does not include 2 points and double king. Double Shun: Three or more Continuous counterparts (such as: 334455, 7788991010jj). Does not include 2 points and double king. Sanshun: Two or more consecutive three consecutive cards (eg: 333444, 555666777888). Does not include 2 points and double king. Airplane with wings: three sho same number of single cards (or the same number of on the card). Such as: 444555 79 or 33344555 7799JJ four band two: four cards two-handed cards. (Note: The four bib is not a bomb). Such as: 5555 3 8 or 4444 55 77. So, how to analyze this handbook is a brand of brand? Before we try to solve this problem, let's take a look at how to distinguish between a realistic life. In the landlord game, an important basis for determining different brand types is to see how many cards in this hand is the same. For example, a card like a hand: Plum 2 square 3 red peach 3 black peach 3, in our thinking, first calculate the number of those cards with the same number, that is, three 3, here, 3 total 3 times appeared. According to the same number of the same number, we can divide a hand into four situations: 1, all the numbers only appear once 2, the same number 3, the same number of the card appears three times 4, the same number Four 5 times, it is impossible to appear: The same number is greater than four or less than once. Among them, in the above 1, 2, 3, 4 may be divided into a variety of situations, such as in 1, although the same number is only once, but it is not possible to conclude it is single, it may also be a double king. (This assumes that the numbers of the size are different) or smooth; in the case of 2, it is further divided into: pairs of children and doubles; in 3, there may be three times, may Have the following brand: single three, three bands one, three shots or planes; 4 identical digital cards, there may be the following brand: bomb and four bibs. In order to establish such an analytical model, we need to sort and statistically, find the maximum number of identities and the same number, and then analyze its characteristics until the current card is finalized. Used to implement a brand type analysis pseudo process is as follows: Note: CardList is the list of cards, and CardCount is the number of passes.

转载请注明原文地址:https://www.9cbs.com/read-43558.html

New Post(0)