Help me with The Game of Roulette plzzzzzzz :(

• 05-17-2010
dhruvgopal
Help me with The Game of Roulette plzzzzzzz :(
The Game of Roulette
Roulette is played with a wheel containing 38 different squares along its circumference. Two of these squares, numbered 0 and 00 are green; 18 are red and 18 are black. The red and black squares alternate in color, and are numbered 1 through 36 in a random order.

A small marble is spun within the wheel, which eventually comes to rest within a groove
beneath one of the squares. The game is played by betting on the outcome of each spin, in any one of the following ways.

(i) By selecting a single red or black square, at 35-to-1 odds. Thus if a player were to bet \$1.00 and win, he or she would receive a total of \$ 36.00: the original \$1.00 plus an

(ii) By selecting a color, either red or black, at 1-to-1 odds. Thus if a player chose red on a \$1.00 bet, he or she would receive \$2.00 if the marble came to rest beneath any red square.

(iii) By selecting either the odd or the even numbers (excluding 0 and 00), at 1-to-1 odds.

(iv) By selecting either the low 18 or the high 18 numbers at 1-to-1 odds.

You are required to implement the roulette game described above as an
interactive C program.
Allow the players, a minimum of two players, to select whatever type of bets they
wish by choosing from a menu. Then print the outcome of each game followed by
appropriate outcome messages indicating whether each player has won or lost.
The game must interact with the players asking them to place their bets
respectively before it starts.
The game must also allow the players to modify their bets before the marble is
spun, usually a time interval of 30 seconds is given to modify bets.
Whenever a player wins, he may either keep his money in the machine or he may
remove all or part of it. The program you develop must therefore also provide this
feature.

I need the Pseudocode, flowchart and Program codes(Bloodshed Dev C++)

Help me plzzzzzzzzz.
• 05-17-2010
EVOEx
Okay. So what do you expect us to do here?
• 05-17-2010
Brafil
His Homework, I think.

Code:

```#include "roulette.h" int main(int argc, char **argv) {     arg_t *args = process_args(argc, argv);     return play_game(args); }```
Of course you should link with roulette.dll.

We won't do this for you unless you can show us that you have actually done something.