I need to write a simple c++ slot machine. You can bet 0 to $100. 0 means they quit. The program should print a line that looks like a slot machine with 3 reels. Like BAR BAR BAR. Or cherries, 7, BAR. Can only contain BAR, 7, Cherries, or $. Payout is as follows:
- cherries [not cherries] [any] pays 3 x bet (3x the bet)
- cherries cherries [not cherries] pays 10 x bet
- cherries cherries cherries pays 20 x bet
- BAR BAR BAR pays 35 x the bet
- 7 7 7 pays 50 x the bet
If he lost say "sorry", if he won add it to his total and repeat.
using these: int GetBet(), string PullOne(),
int GetPayMultipier(string s1, string s2, string s3),
void Display(string s1, string s2, string s3, int winnings)
C++ programming?
Why do not you contact a C++ expert? Check http://k.aplis.net/
Reply:ok, i guess u better get started on that
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment