Poker is a card game that involves betting money to win. The outcome of the game depends on luck, but poker players use psychology and game theory to make good choices. Players only place money into the pot voluntarily. It is therefore possible for the last two players to split the pot and win a small portion of it.

Different types of poker games use different betting structures. The most popular game is Texas Hold’em, but other versions are also played. In both, players must know how to determine the winning hand based on the cards they are dealt face up. While different games have different betting structures, the basic rules of poker are the same.

In Texas Hold’em, a pair is a pair of two cards of equal rank. When two pairs compare, the highest pair wins. In other words, if you have J-J-2-2-4, you have a higher pair than someone with five-five-A-K-Q. If the pair is equal, the lower pair wins.

If you win, the cards you have in the pot are no longer in the deck. The exceptions are the Ace and 6 cards. These cards are not put back into the deck. This means that you have to think about how many cards you need to win the game and which cards will make you the winner.