![]()
This assignment asks you to implement several classes that help model
the game of roulette. It is meant to familiarize
you with the following concepts discussed in class and the textbook:
|
In Las Vegas style rules, gamblers can make several different kinds of
bets, each of which pays off differently as listed in the table below.
These payoffs are close to the real mathematical odds of getting such a spin,
but slightly lower to allow the casino to make a profit on average.
| Bet |
Payoff
|
| Red/Black |
1 to 1
|
| Odd/Even |
1 to 1
|
| High/Low |
1 to 1 |
| Single number |
35 to 1
|
| Two consecutive numbers |
17 to 1
|
| Three consecutive numbers |
11 to 1
|
The user should be allowed to bet any positive amount not exceeding the bankroll. After each spin of the wheel, the gambler's bankroll should be updated appropriately and the new total reported to the user. If the gambler runs out of money, the program should stop.
![]()