There are three deliverables for this exercise. The stub does not need documentation, but the other classes do need complete Javadoc or Python docstrings.
The Passenger57 class. We will rework
this design later. This class always places a bet on Black. Since
this is simply used to test Game, it
doesn't deserve a very sophisticated unit test of its own. It will
be replaced in a future exercise.
The RouletteGame class.
A class which performs a demonstration of the
Game class. This demo program creates the
Wheel, the stub
Passenger57 and the
Table. It creates the
Game object and cycles a few times. Note
that the Wheel returns random results,
making a formal test rather difficult. We'll address this
testability issue in the next chapter.