Poker is a card game in which players place bets and then reveal their cards.…