In this article, you can read about the poker hands ranking system. Poker hands are ranked as follows, from lowest to highest in 10 ranks,
High card – if nobody has a pair or better than the highest card wins. If multiple people tie for the highest card they look at the second-highest then the third-highest and so on.
Pair – two cards of identical rank with three distinct cards.
Two pairs – two distinct sets of two cards of the same rank and a fifth card. The highest pair wins ties. If both hands have the same high pair the second pair wins.
Three of a kind – three cards of the same rank matched with two cards that are not a pair. When multiple players have three of a kind, the highest three of a kind wins.
Straight – five cards in sequential order. An ace may either be high or low. Straights may not wrap around the ends, such as Queen, King, Ace, two, three. When straights tie the highest number in straight wins.
Flush – five cards where all of the cards are the same suit.
Full house – five cards containing a three of a kind and a pair. Ties are broken first by the three of a kind, then pair.
Four of a kind – four cards of identical rank with a fifth distinct card.
Straight flush – five cards in the same suit that are in sequential order. Similar to a straight they may not wrap around.
Royal flush – a five-card straight flush with an ace-high.