Poker is a card game in which players place bets on the outcome of a hand, and are competing for the pot (the total amount of all the bets placed). The goal is to form the best possible poker hand based on the rank of the cards, and win the pot at the end of…