Ok, so I am making a Texas Hold'em AI for my senior project. I've created the GUI and betting/dealing procedures, but I have reached the part where I need to determine who won the hand, and I do not know the best way to approach this. I am using python btw. ATM I have 2 lists, one for the 7 player cards, one for the 7 computer cards. Currently, all cards are stored as a struct in the list as {'Number': XX, 'Suit': x}, where number is 2-14, the suit is 1-4. The way I was going to approach this, is to make a function for each hand type, starting with the highest. Eg. self.CheckRoyal(player cards), and manually go through the list and evaluate if a royal flush was achieved. There has to be a better, numerically way to do this.