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?
Thanks in advance.