I have an assignment for University that requires me to use a grid of buttons in any way I want to create some sort of game.
I've chosen to make mine like a Bandit machine:
- Press "Spin!" Button
- 3x3 Grid Of Buttons Randomize Their Colours (Either Red, Green, Blue or Gold)
- If Middle 3 Match In Colour, Award Points
So as you can see from the list and screenshot above, I have a 3x3 grid of buttons all with a grey background to begin with. I then want them to randomly pick a colour from Red, Green, Blue or Gold when the "Spin!" button is pressed. Then if the middle 3 match up in colour then I award the player with points.
The assignment MUST use buttons for this, so please don't leave any suggestions for using alternate elements.
Any help you can give me would be much appreciated.