I’m thinking of adding a small feature to challenge myself. I want to start a new game after n number of rounds, for this I thought of doing the below:
capture the value of specific UILabel
Check if it’s greater than n number
If true start a new game, else keep playing.
I was able to do number 1, which came back as an optional(String), is it safe to change it’s type back to an int so I can compare? If no how do I check this, if yes, the new game button listens for an event of click i think, how can I do this automatically based on number of rounds, is this even possible?
Hi rexorioko. Rather than trying to get the round number back from the Text item, why not just look at is as you’re about to increment it? Inside the dismiss button handler, there’s a chunk of code that looks like this: