The first 3 lines of you program should have a multiline comment (Starting with /* and ending with */). Also do not let them bid more than they have. Keep track of their balance, and prevent them from playing if their balance reaches 0.
Modify the program so that the user starts with $1000 dollars, and loses money (or gains money) each time they play. The amount won for an individual spin will be determined as follow:
The program should also display the amount that the user won for the spin, and the total amount won for all spins. When the user clicks the Spin button, the application should display 3 randomly selected symbols. The application should let the user enter into a TextField control the amount of money he or she is inserting into the machine. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user.įor this assignment, you are to create a JavaFX application that simulates a slot machine, it should look similar to the screenshot below The slot machine then displays a set of random images.
A slot machine is a gambling device into which the user inserts money, then pulls a lever (or presses a button).