LostAria
04-11-2015, 01:54 PM
I am trying to complete this assignment:
Modify the following slot machine code:
So that the player’s credits appear in a textbox. When the game begins, the number of credits should start at 20. Each spin of the slots should cost the player one credit. If all three slot images match, however, the player wins and is credited with 13 credits.
In addition, an alert window should appear to notify the player of the winning spin. Augment the SpinSlots function so that the number of credits is updated appropriately on each spin.
Add code to the SpinSlots function that will not allow the player to spin if the balance is Zero. Add an alert notification.
Add a button that allows the player to add 20 credits to his account. (write a function)
CODE REMOVED BY MODERATOR
I know there are a lot of mistakes, I am still trying to edit it, but I am going in circles and getting myself lost. Help! Thank-you so much!
Modify the following slot machine code:
So that the player’s credits appear in a textbox. When the game begins, the number of credits should start at 20. Each spin of the slots should cost the player one credit. If all three slot images match, however, the player wins and is credited with 13 credits.
In addition, an alert window should appear to notify the player of the winning spin. Augment the SpinSlots function so that the number of credits is updated appropriately on each spin.
Add code to the SpinSlots function that will not allow the player to spin if the balance is Zero. Add an alert notification.
Add a button that allows the player to add 20 credits to his account. (write a function)
CODE REMOVED BY MODERATOR
I know there are a lot of mistakes, I am still trying to edit it, but I am going in circles and getting myself lost. Help! Thank-you so much!