There are five deliverables for this exercise. Each of these classes needs complete Javadoc or Python docstring comments.
Revision to the Player class to add
two new methods: one will set the stake and the
other will set the roundsToGo.
void setStake(int initStake);void setRounds(int initRounds);The Simulator class.
The expected outcomes from the non-random wheel can be
rather complex to predict. Because of this, one of the
deliverables is a demonstration program that enumerates the actual
sequence of non-random spins. From this we can derive the sequence
of wins and losses, and the sequence of
Player bets. This will allow us to predict
the final outcome from a single session.
A unit test of the Simulator class
that uses the non-random generator to produce the predictable
sequence of spins and bets.
A main application class that creates the necessary objects,
runs the Simulator's
gather method, and writes the available
outputs to System.out In this case, it will
print the list of maxima, and the list of session lengths. This
raw data can be redirected to a file, loaded into a spreadsheet
and analyzed.