Skip to content

Instantly share code, notes, and snippets.

View just-fartin-around-dev's full-sized avatar

just-fartin-around-dev

  • Joined Oct 29, 2025
View GitHub Profile
@just-fartin-around-dev
just-fartin-around-dev / poker.py
Created October 29, 2025 04:23
20 Minute Poker Hand Scorer
import random
from collections import Counter
suits = ["S","C","D","H"]
# Card values, T = 10 to make it easier to parse later, as i can't be arsed to make a real struct/class for each card
face_cards = ["T","J","Q","K","A"]
def rank2card(v : int) -> str:
if(v <= 9):