Your First iOS & SwiftUI App: Polishing the App, Episode 17: Challenge: Bonus Points | raywenderlich.com

Get some practice with coding basics by giving the user bonus points if they are very close to the target.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/28797859-your-first-ios-swiftui-app-polishing-the-app/lessons/17

The challenge text (and Ray) both say โ€œAlso give them 50 points if they are 1 offโ€. However, the test and code written for โ€œcloseโ€ gives 50 bonus points for being 1 OR 2 off. This was confusing.