Poker is a card game played by two or more players. The object is to…