This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |