Poker is a game in which players bet money and try to make the best 5-card hand. The player with the highest hand wins the hand and the pot. In case of a tie, the players share the pot. After many rounds, players will run out of money. When this happens, the game ends. If…