There are three deliverables for this exercise.
The PlayerCancellation class.
A unit test of the PlayerCancellation
class. This test should synthesize a fixed list of
Outcomes, Bins, and
calls a PlayerCancellation instance with
various sequences of reds and blacks. There are 16 different
sequences of four winning and losing bets. These range from four
losses in a row to four wins in a row. This should be sufficient
to exercise the class and see the changes in the bet
amount.
An update to the overall Simulator
that uses the PlayerCancellation.