Cash games
Winning at poker is all about your hand's type and rank. Think of it like this: a flush beats a straight, and three of a kind is better than just a pair. Whoever has the highest 5-card combo wins.
For example, say the table's got: K-K-K-K-J. Player 1 has A-Q, and Player 2's got A-A. Since they both have the same combo: K-K-K-K-A, they split the pot evenly. What is a split pot?
If players have the same type of hand, we look at the cards' rank within each hand. Like, a straight with 7-8-9-10-Jack beats one with 4-5-6-7-8. And a pair of Queens beats a pair of 5s. For flushes, it's all about the highest card in the flush.
If hands are still tied, we check out the highest remaining card, called the "kicker." So, a pair of 9s with a King kicker wins over a pair of 9s with a 10 kicker.
Finally, for High Card hands, it's all about the highest card. A King-high beats a Queen-high. If those tie, we move to the next highest card, and so on. So, a hand of King-Jack-8-4-3 beats one of King-Jack-7-6-5.
Tournaments
In tournaments, if three or more players go all-in on the last hand, the rankings (except for the winner) aren't about who's got the best hand. Instead, they're based on the number of chips each player had at the start of the round.