Poker is a card game in which players place bets on their hand. The player…