<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ajmeraaditya on Medium]]></title>
        <description><![CDATA[Stories by Ajmeraaditya on Medium]]></description>
        <link>https://medium.com/@ajmeraaditya03?source=rss-529a564c60a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Yeh1g3nvDfX3SDes</url>
            <title>Stories by Ajmeraaditya on Medium</title>
            <link>https://medium.com/@ajmeraaditya03?source=rss-529a564c60a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:30:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajmeraaditya03/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mansion Hold’em: Poker Variant]]></title>
            <link>https://medium.com/@ajmeraaditya03/mansion-holdem-a-3-card-texas-hold-em-twist-a1030e22b59a?source=rss-529a564c60a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1030e22b59a</guid>
            <category><![CDATA[game-theory]]></category>
            <category><![CDATA[gambling]]></category>
            <category><![CDATA[poker]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ajmeraaditya]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 20:03:16 GMT</pubDate>
            <atom:updated>2025-07-23T16:53:23.720Z</atom:updated>
            <content:encoded><![CDATA[<p>In this new poker variant, each player gets <strong>3 private cards</strong>, and we deal <strong>6 community cards</strong> (3 on the flop, 2 on the turn, 1 on the river). (In standard Texas Hold’em, it’s 3‑flop, 1‑turn, 1‑river.) After the final river, each player forms the <strong>best 6-card hand out of their 3 hole cards plus the 6 community cards</strong>. (By contrast, standard Hold’em uses the best 5 of 7.) This extra card in your hand and extra community card on the turn open up exciting new combinations. We keep the familiar poker hierarchy (straight flush, four‑of‑a‑kind, etc.) but <strong>add several wild new hand types</strong>. Players eager to chase unique patterns will love names like <strong>Royal Even</strong>, <strong>Grand House</strong>, <strong>Mansion</strong>, <strong>All Even</strong>, <strong>Broken Straight</strong>, and <strong>Straight Pair Flush</strong>.</p><h3>New Hand Rankings</h3><p>Below are the <em>custom 6‑card hands</em>. In each case, the entire 6-card hand must meet the criterion (with suits and ranks as noted), and we give an example for clarity:</p><ul><li><strong>Royal Even</strong> (supreme): Six cards <strong>all even-ranked and same suit</strong>. (Even ranks: 2,4,6,8,10,Q(12),A(14).) <em>Example:</em> 2♥ 4♥ 6♥ 8♥ 10♥ Q♥ is a Royal Even hand (all hearts, all even ranks).</li><li><strong>Straight Pair Flush</strong>: Six cards consisting of <strong>three consecutive ranks</strong>, each appearing <strong>in exactly the same two suits</strong>. In other words, you pick two suits (e.g. ♠♥) and then take the cards of those suits at ranks <em>n, n+1,</em> and <em>n+2</em>. <strong>Example 1:</strong> 5♠ 5♥, 6♠ 6♥, 7♠ 7♥</li><li><strong>Grand House</strong>: A “quad full house” — one rank appears four times and another rank appears twice. <em>Example:</em> 8♣ 8♦ 8♥ 8♠ + 5♣ 5♦ (four 8’s plus a pair of 5’s).</li><li><strong>Two Three of a Kind</strong>: Two distinct ranks each appearing <strong>3×</strong> (pattern 3+3). <em>Example:</em> 5♥ 5♦ 5♣ + Q♣ Q♠ Q♥ (three 5’s and three Queens)</li><li><strong>Mansion</strong>: One rank in the hand occurs <strong>3×</strong>, a second rank <strong>2×</strong>, and a third rank <strong>1×</strong> (pattern 3+2+1 or 1+2+3). <em>Example:</em> A♠ + 2♥ 2♣ + 3♦ 3♠ 3♥ (one Ace, two 2’s, three 3’s).</li><li><strong>All Even</strong>: Six cards containing even ranks, i.e {2,4,6,8,10, Q} (suits can be any). <em>Example:</em> 2♣ 4♠ 6♦ 8♥ 10♣ Q♦ (all ranks 2,4,6,8,10,12 which are even).</li><li><strong>Three Pair</strong> (common new case): Exactly three distinct pairs (e.g. A♠ A♦, K♣ K♥, 7♦ 7♠). This is weaker than Two Trips but above Two Pair in rank.</li><li><strong>Broken Straight</strong>: Two disjoint 3-card straights. In other words, you can split the 6 cards into two groups of three where each group is a mini‑straight. <em>Example:</em> 2♥ 3♦ 4♣ and 9♠ 10♣ J♦ (we have a straight 2–3–4 and another 9–10-J).</li></ul><p><strong>Note:</strong> In Mansion Hold’em, all the traditional 5‑card categories are now <strong>6‑card</strong> patterns.</p><ul><li>A <strong>Flush</strong> requires <strong>six cards</strong> of the same suit (instead of five)</li><li>A <strong>Straight</strong> requires <strong>six consecutive ranks</strong> (instead of five)</li><li>A <strong>Straight Flush</strong> requires <strong>six consecutive ranks in the same suit</strong> (instead of five)</li></ul><h3>Order of Hands</h3><ol><li><strong>Royal Flush OR Royal Even<br></strong>- <em>Royal Flush:</em> A 9–10‑J‑Q‑K‑A straight flush in one suit (6 cards).<br> <em>Example:</em> 9♦ 10♦ J♦ Q♦ K♦ A♦<br>- <em>Royal Even:</em> Six even‑ranked cards all in the same suit (2,4,6,8,10,Q).<br> <em>Example:</em> 2♥ 4♥ 6♥ 8♥ 10♥ Q♥</li><li><strong>Straight Flush</strong><br> Six consecutive ranks all in one suit.<br> <em>Example:</em> 4♠ 5♠ 6♠ 7♠ 8♠ 9♠</li><li><strong>Straight Pair Flush</strong><br> Three consecutive rank‑pairs in the same two suits.<br> <em>Example:</em> 5♠ 5♥, 6♠ 6♥, 7♠ 7♥</li><li><strong>Grand House</strong><br> Four of a kind plus a pair (4+2).<br> <em>Example:</em> 8♣ 8♦ 8♥ 8♠ + 5♣ 5♦</li><li><strong>Quads</strong><br> Exactly four of one rank (4+1+1).<br> <em>Example:</em> 9♠ 9♣ 9♦ 9♥ + 4♣ 7♦</li><li><strong>Two Three of a Kind</strong><br> Two distinct ranks, each appearing three times (3+3).<br> <em>Example:</em> 5♥ 5♦ 5♣ + Q♣ Q♠ Q♥</li><li><strong>Mansion</strong><br> Ranks occurring 3×, 2×, and 1× (3+2+1).<br> <em>Example:</em> A♠ + 2♥ 2♣ + 3♦ 3♠ 3♥</li><li><strong>All Even</strong><br> Six cards containing even ranks, i.e {2,4,6,8,10, Q} (any suit).<br> <em>Example:</em> 2♣ 4♠ 6♦ 8♥ 10♣ Q♦</li><li><strong>Flush</strong><br> Six cards of the same suit (any ranks).<br> <em>Example:</em> 2♥ 5♥ 7♥ 9♥ J♥ K♥</li><li><strong>Straight</strong><br> Six consecutive ranks (any suits).<br> <em>Example:</em> 4♣ 5♦ 6♠ 7♥ 8♣ 9♦</li><li><strong>Full House</strong><br> Three of one rank + two of another + one extra (3+2+1).<br> <em>Example:</em> 7♣ 7♥ 7♦ + 4♠ 4♥ + A♠</li><li><strong>Three of a Kind</strong><br> Exactly three of one rank + three unrelated cards (3+1+1+1).<br> <em>Example:</em> Q♣ Q♦ Q♥ + 2♠ 5♣ 9♦</li><li><strong>Three Pairs</strong><br> Exactly three distinct pairs (2+2+2).<br> <em>Example:</em> A♠ A♦, K♣ K♥, 7♦ 7♠</li><li><strong>Broken Straight</strong><br> Two disjoint 3‑card straights (3+3).<br> <em>Example:</em> 2♥ 3♦ 4♣ and 9♠ 10♣ J♦</li><li><strong>Two Pairs</strong><br> Exactly two distinct pairs + two extra cards (2+2+1+1).<br> <em>Example:</em> J♣ J♦ + 8♥ 8♠ + 2♦ 5♠</li><li><strong>Pair</strong><br> Exactly one pair + four extra cards (2+1+1+1+1).<br> <em>Example:</em> K♣ K♦ + 3♠ 5♥ 9♦ J♣</li><li><strong>High Card</strong><br> No combination of six unrelated ranks (all different, non‑sequential, unsuited).<br> <em>Example:</em> A♠ + 10♦ + 7♣ + 4♥ + 3♦ + 2♣</li></ol><h3>Probabilities from Simulation</h3><p>We used a <strong>Monte Carlo simulation</strong> in Python to estimate how often each hand occurs. We generated 100 million random deals (shuffling a 52-card deck, dealing 3 hole cards, then 6 community cards) and classified the best 6-card hand for each deal. The bar chart below shows the relative frequencies of each category from that simulation:</p><p><em>In 100 million simulated hands, very common outcomes (like making at least one Pair) show up in almost every deal, whereas exotic types (Royal Even, Straight Flush, etc.) are vanishingly rare. For example, “At least a Pair” occurred ~98% of the time, while a Royal Even (all even cards, same suit) appeared only ~0.004% of the time. These estimates come from counting frequencies in a Monte Carlo run.</em></p><p>From the data we see that <strong>pairs and two‑pairs dominate</strong>: nearly every 6‑card hand has at least one pair (≈98%), and about 77% have at least two pairs. “Broken Straight” (two disjoint 3-card straights) showed up in ~39% of deals, and “Three Pair” in ~32%. At the top end, hands like Royal Flush or Royal Even were on the order of 0.004% of deals. In general, the rarer the pattern, the lower its probability — as intuition suggests.</p><h3>Technical Implementation For Verification</h3><p><strong>Hand generation:</strong> We represent the deck as 52 cards (standard suit/rank), shuffle it each trial, and draw the first 3 as a player’s cards and the next 6 as community cards (3 + 2 + 1). In code this looks roughly like:</p><pre>deck = Deck()<br>for _ in range(num_simulations):<br>    deck.shuffle()<br>    player_cards = deck.draw(3)<br>    community_cards = deck.draw(6)  # flop (3), turn (2), river (1)<br>    all_cards = player_cards + community_cards<br>    # Evaluate the best 6-card hand from these 9 cards.<br>    best_hand = evaluate_best_hand(all_cards)<br>    counts[best_hand] += 1</pre><p>Here evaluate_best_hand iterates over all 9 choose 6 = 84 combinations of 6 cards from the 9 and picks the highest-ranked category. After the loop, we compute each hand’s probability as count/num_simulations.</p><p><strong>Hand evaluation:</strong> In a helper module, we define functions that check each pattern. For instance, checking a Grand House is straightforward with a Counter:</p><pre>from collections import Counter</pre><pre>def is_grand_house(cards):<br>    ranks = [card.rank for card in cards]<br>    cnt = Counter(ranks)<br>    # True if one rank appears 4 times and another rank appears 2 times<br>    return 4 in cnt.values() and 2 in cnt.values()</pre><p>Similarly, for the Broken Straight we might do:</p><pre>def is_broken_straight(cards):<br>    values = sorted(card.value for card in cards)<br>    # Try splitting into two 3-card groups<br>    for combo in combinations(values, 3):<br>        other = [v for v in values if v not in combo]<br>        # Check if both groups are consecutive sequences<br>        if is_consecutive(combo) and is_consecutive(other):<br>            return True<br>    return False</pre><p>Each 6-card combo is tested against our special-category functions (Royal Even, Mansion, etc.). If the category matches, then it is marked true. Then, among all hands, we calculate the total true instances for each category.</p><h3>Probability Results</h3><p>Below are the empirical frequencies from our 100 million–hand simulation:</p><pre>| **Rank** | **Hand Type**            | **Example**                                       |     **Count** |         **Probability** | **Percentage** |<br>| :------: | ------------------------ | ------------------------------------------------- | ------------: | ----------------------: | -------------: |<br>|     1    | Royal Flush / Royal Even | 9♥, 10♥, J♥, Q♥, K♥, A♥ / 2♥, 4♥, 6♥, 8♥, 10♥, Q♥ | 4,116 / 4,162 | 0.00004116 / 0.00004162 |        0.0041% |<br>|     2    | Straight Flush           | 4♠, 5♠, 6♠, 7♠, 8♠, 9♠                            |        34,182 |              0.00034182 |        0.0342% |<br>|     3    | Straight Pair Flush      | 5♣, 5♦, 6♥, 6♠, 7♣, 7♦                            |        73,772 |              0.00073772 |        0.0738% |<br>|     4    | Grand House              | 8♠, 8♣, 8♦, 8♥, 5♣, 5♦                            |       696,937 |              0.00696937 |        0.6970% |<br>|     5    | Quads                    | 9♣, 9♦, 9♥, 9♠, K♦, 3♠                            |     1,007,679 |              0.01007679 |        1.0077% |<br>|     6    | Two Three of a Kind      | 3♦, 3♣, 3♥, 6♠, 6♣, 6♥                            |     1,112,855 |              0.01112855 |        1.1129% |<br>|     7    | Mansion                  | A♠, 2♥, 2♣, 3♦, 3♠, 3♥                            |     1,682,028 |              0.01682028 |        1.6820% |<br>|     8    | All Even                 | 4♣, 4♠, 6♦, 8♥, 10♣, Q♦                           |     1,770,905 |              0.01770905 |        1.7709% |<br>|     9    | Flush                    | 2♠, 5♠, 7♠, 9♠, J♠, Q♠                            |     3,989,211 |              0.03989211 |        3.9892% |<br>|    10    | Straight                 | 2♦, 3♣, 4♠, 5♣, 6♥, 7♠                            |    10,630,320 |              0.10630320 |       10.6303% |<br>|    11    | Full House               | 4♣, 4♠, 4♦, 9♣, 9♦, 9♥                            |    19,515,174 |              0.19515174 |       19.5152% |<br>|    12    | Three of a Kind          | 7♠, 7♦, 7♣, J♠, K♣, 2♥                            |    24,096,322 |              0.24096322 |       24.0963% |<br>|    13    | Three Pair               | 3♠, 3♦, 4♣, 4♥, 6♠, 6♥                            |    31,535,927 |              0.31535927 |       31.5359% |<br>|    14    | Broken Straight          | 2♥, 3♦, 4♣, 9♠, 10♣, J♦                           |    38,943,294 |              0.38943294 |       38.9433% |<br>|    15    | Two Pair                 | 2♠, 2♣, 7♠, 7♦, Q♥, K♠                            |    77,530,612 |              0.77530612 |       77.5306% |<br>|    16    | Pair                     | 9♠, 9♦, 3♣, 4♥, J♦, K♥                            |    98,103,283 |              0.98103283 |       98.1033% |<br>|    17    | High Card                | A♠, 4♥, 7♦, 9♣, J♥, K♠                            |   100,000,000 |              1.00000000 |      100.0000% |<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urvrGKBMD_z3dOtiwaMfoA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1030e22b59a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>