hi i need help in making a non graphic slot machine program. I have to use object oriented programming but i am confused about what classes to use and to relate them.Also i have no idea how to implement the debug version. please help me.
In a real slot machine the player pulls a handle to rotate the reels that have pictures printed on them. Winning or losing is determined by which pictures line up with the pay line, a line in the middle of a viewing window. If each reel shows the same winning picture along the pay line, then the player wins (certain single images are sometimes winners as well). The payout (the amount the player wins) depends on what pictures fall along the pay line.
In this project, the reels will be labeled with numbers from 1 through 22. A user can place a bet for one or more of units of currency (N), up to 10. The payout is 2*N in every case the same number falls along the pay line in each wheel, EXCEPT for the following combinations where the payout is different:
1st Reel 2nd Reel 3rd Reel Payout
2 2 2 3*N
7 7 7 20*N
7 7 any 5*N
13 13 13 4*N
19 19 19 4*N
Upon placing a bet, your slot machine will "spin the wheels", print the outcome, the payout and the current player's balance.
Before the game begins the player will be prompted to enter the amount of currency (s)he has available to play on the slot machine. The slot machine always starts with 1,000 unites of currency.
To facilitate testing, the executable will accept an option --debug which will tell the application to print the slot machine balance every time messages are printed.
The spinning of the wheel will be simulated through the use of the srand and rand functions, which are found in cstdlib.
the player's account balance should be updated, as well as the machine's, at the end of the round.