iOS App Development Tutorial Section
Create a Casino Slot Machine Apple Watch with Objective-C Page 2
13. Collection of array of items
We now need to update the images to the next image and rotate the sequence of images.
15. Programming the logic
We need to program the logic. We will be using the update method to rotate the images and code the selected item.
17. Programming the logic - part 2
Now that we are done with the logic, we need to take care of the index row.
19. Defining win values
Once the slots are done spinning, we still need to calculate the score to check whether the user won any money or not.
21. Score 2 items in a row
We have so far the logic when we have three items in a row. We will now add the logic when we have two identical items in a row.
23. Change WIN text color
We are now going to make the button a bit more pretty. We will change the color of the spin button whenever the player wins.