ItMayBeAHack OOD Exercises
An exercise in OOD as guided by ItMayBeAHack.com.
Public Member Functions | List of all members
Roulette.BinBuilderUS Class Reference

Builds the bins for a wheel based on US betting rules. More...

Inheritance diagram for Roulette.BinBuilderUS:
Roulette.IBinBuilder

Public Member Functions

void BuildBins (Wheel wheel)
 Creates all bins for a wheel. More...
 
void GenerateColumnBets (Wheel wheel)
 Generates all column bets. More...
 
void GenerateCornerBets (Wheel wheel)
 Generate all corner bets (i.e. a bet on the corner of a number). More...
 
void GenerateDozenBets (Wheel wheel)
 Generates all 'dozen' bets (i.e. 1-12, 13-24, 25-36). More...
 
void GenerateEvenMoneyBets (Wheel wheel)
 Generates all even money bets (i.e. Red, Black, Even, Odd, High (19-36), and Low (1-18)). More...
 
void GenerateFiveBet (Wheel wheel)
 The top line bet (0,00,1,2,3). More...
 
void GenerateLineBets (Wheel wheel)
 Generates all line bets (i.e. a bet between 2 rows such as 1-3 + 4-6). More...
 
void GenerateSplitBets (Wheel wheel)
 Generates all of the split bets (i.e. bets on 2 numbers). More...
 
void GenerateStraightBets (Wheel wheel)
 Generates all straight bets for the wheel (i.e. a bet on a single number). More...
 
void GenerateStreetBets (Wheel wheel)
 Generates all stree bets for the wheel (i.e. bet on all 3 numbers in a column). More...
 

Detailed Description

Builds the bins for a wheel based on US betting rules.

Member Function Documentation

void Roulette.BinBuilderUS.BuildBins ( Wheel  wheel)

Creates all bins for a wheel.

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateColumnBets ( Wheel  wheel)

Generates all column bets.

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateCornerBets ( Wheel  wheel)

Generate all corner bets (i.e. a bet on the corner of a number).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateDozenBets ( Wheel  wheel)

Generates all 'dozen' bets (i.e. 1-12, 13-24, 25-36).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateEvenMoneyBets ( Wheel  wheel)

Generates all even money bets (i.e. Red, Black, Even, Odd, High (19-36), and Low (1-18)).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateFiveBet ( Wheel  wheel)

The top line bet (0,00,1,2,3).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateLineBets ( Wheel  wheel)

Generates all line bets (i.e. a bet between 2 rows such as 1-3 + 4-6).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateSplitBets ( Wheel  wheel)

Generates all of the split bets (i.e. bets on 2 numbers).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateStraightBets ( Wheel  wheel)

Generates all straight bets for the wheel (i.e. a bet on a single number).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.

void Roulette.BinBuilderUS.GenerateStreetBets ( Wheel  wheel)

Generates all stree bets for the wheel (i.e. bet on all 3 numbers in a column).

Parameters
wheelThe wheel to add the bin-outcomes to.

Implements Roulette.IBinBuilder.


The documentation for this class was generated from the following file: