Thread: The Game of Roulette-Help me plzzz, I'm new 2 it :(

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

    The Game of Roulette-Help me plzzz, I'm new 2 it :(

    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 PLZZZ

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    First of all, don't cross-post. Next, you need to post some code showing what efforts you've made thus far. Noone is going to write it for you, but we can help you along if you get stuck somewhere. Cheers!
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    I repeat my post here:
    Okay. So what do you expect us to do here?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    And not to mention, Help with The Game Of Roulette plzzz

    Since you're already a week late with the pseudo-code BEFORE you even showed up begging for help, chances are that you could never give a credible "each candidate will be
    given 10-15 minutes to explain his program" presentation to begin with.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

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-08-2010, 12:08 AM
  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, 03:46 PM
  4. Help: Text-Based Roulette Game
    By mfm1983 in forum C++ Programming
    Replies: 30
    Last Post: 11-28-2006, 12:39 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-24-2002, 11:00 PM