Help me with The Game of Roulette plzzzzzzz :(

This is a discussion on Help me with The Game of Roulette plzzzzzzz :( within the Game Programming forums, part of the General Programming Boards category; The Game of Roulette Roulette is played with a wheel containing 38 different squares along its circumference. Two of these ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    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
    additional $35.00.

    (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.
    Thanks in advance

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Okay. So what do you expect us to do here?

  3. #3
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how do the game engine and the api interact?
    By Shadow12345 in forum Game Programming
    Replies: 9
    Last Post: 12-07-2010, 11:08 PM
  2. Replies: 15
    Last Post: 10-20-2009, 09:39 AM
  3. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 02:46 PM
  4. Help: Text-Based Roulette Game
    By mfm1983 in forum C++ Programming
    Replies: 30
    Last Post: 11-27-2006, 11:39 PM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21