Poker is usually played with a standard 52-card deck, whereas each player receives a hand consisting of 5 cards. Depending on the version of the game, the players are free to swap some cards in order to optimize their hand. At the end of each round, the player with the best hand wins. Poker has originated in the 19th century and has for long had a reputation of being a pure gambling game. It was only within the last few decades that poker has gained importance as a strategy game.