Poker is a card game played between two or more players and involves betting. The…