Project Description:
Using Visual Studio create a Roulette game,the game will be using 4 types of bets:
Straight Up - Betting on a single slot
Dozens - Betting that the ball will land in a slot numbered
Evens and odds - Betting that a ball will land in an even numbered slot or an odd numbered slot
Top Line - Betting that the ball will land in a slot number that is at the top of the betting line
If the player loses they lose their wager and if a player wins they keep their wager plus receive a payout. A roulette payout is given by
payout = 1/n(36 - n)
where n is how many numbers the player is betting on
Form requirements:
A textbox to keep track of the number of chips the player has. Give it a text value of 200 for start
A numeric up down to let the player select the number of chips wagered on the bet (in increments of 10, min 10, max 100)
Picture boxes for the wheel numbers and types of bets; mimic the roulette board, replacing the Red/Black bet with the top line bet
A button to spin the wheel
A textbox to display the previous bets and a textbox to display the average bet
A reset button to start the game over
Class Structure Requirements:
A class of CWheel objects. A CWheel object should be instantiated when the form is loaded and the CWheel class should contain a method to spin a CWheel object. that function should get the whole thing started each time the button is clicked. Your button code shuold basically one be something of the form [login to view URL]();
A class of CPlayer objects. A CPlayer object should be instantiated when the form is loaded and the CPlayer class should have fields for the number of chips the CPlayer object has and the CPlayers objects current bet
A base class CBet with a field for the the number of chips wagered on the CBet and a virtual memberfunction to find the number of chips won on the spin of the wheel
Subclasses for each of the four types of CBet, with each subclass having a method that overrides the virtural functions in CBet
A class CBetNode of nodes for a linked list of bets. This class should have a field for the bet and a field to point to the next bet in the list. This will only be a singly linked list. the class should aslo contain methods to add a node to the lst to cound the number of nodes in the list to add the values fields in the list to average the value fields in the list and to override ToString() in order to list the previous bets in the form
Need to write appropriate constructors for each class
Operation Requirements:
The result of the wheel should be a random choice of 00 or 0-36
The player should be able to click on a picture box for their bet. That means that they can click on any of the numbers for a straight up bet or one of the areas for the three other types of bets
After selecting the bet amount in the numeric up down, the player can click the spin button the result of the wheel spin should be highlighted on the board and the number of chips the players has should be adjusted. the game should stop if the player runs out of chips
If the player doesn't select a bet amount, no big deal they didn't make a bet, but if a bet amount is selected with no bet type selected they should get an error message if they click the spin button
The player should be able to reset the game
I do have the form (board) almost done just making it look nice but any or all help would be grateful
I have a lot of experience in using basic C programming. I have written C code for things like arithmetic calculators, etc. Creating a roulette program should be manageable and fun!
Hello, I should be able to code this up within a day or two. Send me a private message and we can discuss some details, like what your preferred IDE is. Thanks.
$59 USD in 3 days
5.0 (24 reviews)
4.8
4.8
1 freelancer is bidding on average $20 USD for this job
Good day, sir.
"Have space suit - will travel"
When you need this application?
With the best regards,
Sergey
P.S. Please change tag to C# instead of C.