
Repeatedly
The game finishes when either the first black card has been dealt, the counterfeit has been detected, or a set number of cards have been dealt.
This game implements problem 28, catching the greedy counterfeiter, from Fifty Challenging Problems in Probability with Solutions by Frederick Mosteller.