Need Programming Assistance for Class Project

This is a discussion on Need Programming Assistance for Class Project within the C++ Programming forums, part of the General Programming Boards category; I am trying to finish a project for my class I and was wondering if anyone could give me some ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    1

    Need Programming Assistance for Class Project

    I am trying to finish a project for my class I and was wondering if anyone could give me some help.

    The project is to make a roulette game. I am having trouble getting the logic to work on the persons bet and then determining if they win or not and then how much to pay them. Any ideas would be helpful.
    Attached Files Attached Files

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Please review the forum rules and our homework policy.

    What kind of trouble do you have?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    The larch
    Join Date
    May 2006
    Posts
    3,573
    I wonder why you have practically the same code for both the Test and Game branch. You can always compile and test the program while it is unfinished if you comment out certain function calls if those functions are not yet implemented, or you can make those functions simply return 42 or something like that for the time being.

    As to your question, do you have some sort of specification? Or are you supposed to find out the amounts yourself (try Wikipedia)?

    Anyway it seems that you simply multiply the bet by a certain factor for each bet type, if the player wins.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 08:01 AM
  3. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  4. Need assistance for major text base Arena RPG project
    By Ruflano in forum C++ Programming
    Replies: 0
    Last Post: 04-04-2002, 10:11 AM

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