Poker is a card game that involves betting and raising money. A player can win…