(a) A person commits the offense of gambling if the person engages in unlawful gambling.


(b) It is an affirmative defense to a prosecution under this section that the defendant was a player in a social game.


(c) Gambling is a violation for the first offense. Gambling is a class B misdemeanor for the second and each subsequent offense.