Create Slot Game in Excel and play in Excel. I have created this game in Excel to show that excel can work as a game machine too !
-----Game Logic ------
In this game in Excel, on the click of the play button the slot system works and if the average of the 3 slot numbers is greater than 6 then the player will 10 points and if the average is less than 6 then the player gets -1. The total of wins and losses are maintained in the Points section using a simple VBA code.
The code for the Points calculation is
Sub points( )
Cells(15, 12) = Cells(15, 12) + Cells(1, 1)
End Sub
SLOT Machine in Excel Logic
To create the slot machine i have used the Randbetween formula of Excel which allows you to generate Random numbers.
No comments:
Post a Comment