Design

BinBuilder creates the Outcomes for all of the 38 individual Bin on a Roulette wheel.

Constructors

  • BinBuilder();

    Initializes the BinBuilder.

Methods

  • void buildBins(Wheel aWheel);

    Creates the Outcome instances and uses the addOutcome method to place each Outcome in the appropropriate Bin of aWheel.

    There should be nine separate methods to generate the straight bets, split bets, street bets, corner bets, line bets, dozen bets and column bets, even money bets and the special case of zero and double zero. Each of the methods will be relatively simple and easy to unit test. Details are provided in Algorithms.