NOTE: this is the first prototype of the hold ‘em checker; right now it takes ~11s to get the best hand, but on another project i’ve been working on, it now takes ~0.3s (the whole code of it has 774 blocks) Poker Hands (worst to best): ♣️♠️♦️♥️ 10. High Card (Highest value card in Max.) 9. Pair (Two cards of the same value) 8. Double Pair (Two Pairs) 7. Three-of-a-kind (Three cards of the same value) 6. Straight (All cards in ascending / descending order) 5. Flush (All cards with the same suit) 4. Full House (One pair and one three-of-a-kind) 3. Four-of-a-kind (Four cards of the same value) 2. Straight Flush (A flush and a straight) 1. Royal Flush (A straight flush that goes from T to A) 0 (only possible with Jokers). Five-of-a-kind
Genuinely surprised this worked, maybe expect a full game with Texas Hold ‘em later on.