Published: 2026-12-04
# Finding all valid three-card combinations from six cards
The count
Choosing 3 cards from 6, where order doesn't matter, gives:
**C(6,3) = 6! / (3! × 3!) = 20 combinations**
If order did matter (arrangements), it would be 6 × 5 × 4 = 120, but in Teen Patti only the three cards matter, not the order you hold them.
Systematic method
Label the cards **1-6** and list the triples in order, so you never miss or repeat one:
- **Start with 1:** 123, 124, 125, 126, 134, 135, 136, 145, 146, 156 (10 combos)
- **Start with 2 (no 1):** 234, 235, 236, 245, 246, 256 (6 combos)
- **Start with 3:** 345, 346, 356 (3 combos)
- **Start with 4:** 456 (1 combo)
Total: 10 + 6 + 3 + 1 = **20**. Always keep the numbers increasing within each triple, and the list stays complete with no duplicates.
Worked example (Teen Patti)
Cards: **5♠ 6♠ 7♥ 7♦ 9♣ K♠**
| Combination | Hand |
|---|---|
| 5♠ 6♠ 7♥ | Sequence |
| 5♠ 6♠ 7♦ | Sequence |
| 5♠ 6♠ K♠ | Color |
| 5♠ 7♥ 7♦ | Pair |
| 6♠ 7♥ 7♦ | Pair |
| 7♥ 7♦ 9♣ | Pair |
| 7♥ 7♦ K♠ | Pair |
| The other 13 | High card |
**Best hands:** the two sequences (5-6-7) tie, since suits don't rank. There's no pure sequence because both 7s are red, and 5♠ 6♠ are spades. This shows why a "best hand" question can have more than one correct answer.
Checking each combination
For each triple, test in this order and stop at the first match:
1. **All three ranks equal?** Trail
2. **Three consecutive ranks?** Check suits: all the same is a pure sequence, otherwise a sequence (apply your rule for A-2-3 and Q-K-A)
3. **All three suits equal?** Color
4. **Two ranks equal?** Pair
5. Otherwise: **high card**
Doing it in code
```python
from itertools import combinations
cards = ["5S", "6S", "7H", "7D", "9C", "KS"]
for combo in combinations(cards, 3):
print(combo) # prints all 20 triples
```
`combinations` gives each triple once, in order, with no repeats.
Quick checks
- Counting the list should give exactly **20**.
- If you see a triple twice (like 123 and 213), you're counting arrangements instead of combinations.
- If the six cards contain duplicates of the same card (not possible in a single deck), the count changes.
If you share your six cards, I can list and rank all 20 triples for you.