The winner of a game of poker is determined by the ranking of the hands. In most games, the player with the best five-card hand wins the pot. If two or more players have the same hand, the pot is split among those players.