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. If three of the images match, the user has won six times the amount entered.If two of the images match, the user has won two times the amount entered.If none of the randomly displayed images match, the user has won $0.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).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |