twostraws / Unwrap

Learn Swift interactively on your iPhone.
https://www.hackingwithswift.com
Other
2.3k stars 312 forks source link

Infinite score in challenges. #234

Open td-gonzales opened 2 years ago

td-gonzales commented 2 years ago

Somehow I got into a state on my iPad where I could keep clicking "Continue" and it would add the challenge score to my total.

So after tapping "continue" the screen doesn't change. So I hit the Continue button again and saw that it was increasing my total progress. Then I just hit the "Continue button as fast as I could and boom I got over a million points.

Steps to reproduce

I have no idea how I got here. I just did the challenge. I was working on it in bed and fell asleep then woke up and kept going. Now I can get infinite points.

Expected behavior

When I hit continue it would score and then at least deactivate the "Continue" button. Or it would take me to another screen saying I needed to wait a day for the next challenge.

I'm not sure how this is supposed to work so I was just playing around with the app. There are a few different UX paths this could take.

Actual behavior

Here is a video of the behavior.

Environment