Poker is a card game in which players bet into a pot with their cards. The aim is to make the best hand possible. To do this, players must match their bet. If a player has the highest hand, they win the pot.

There are four types of poker hands. Each type has a specific ranking. For example, a pair is two cards of the same rank. A flush is five cards of the same suit. Similarly, a higher pair is better than a lower one.

All poker hands have five cards, but different combinations of these are used depending on the rules of the game. Some games have wild cards, which are not part of the regular pack. In addition, some variants are played using multiple packs, with each pack having a different number of cards.

Whenever there is a tie for the highest card, the high card breaks it. When there are no ties, the highest card determines the flush. However, when a player holds two fours of a kind with the same rank, the high card outside the pair will break the tie.

In some versions, players can also bluff, betting they have the best hand. This is done by concealing high-value chips or moving them closer to the middle of the table.

Players can also raise and check, which involves making a bet and then folding. Then the player’s turn to make a bet passes to the next player.