Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBianca Power
495 PointsCan't win if score goes below zero during game
When playing the game, if my score goes below zero at any point, the badge will not be generated when I reach the winning score.
Any help as to why would be appreciated.
1 Answer
Bianca Power
495 PointsI found the issue - the program is requiring the score to reach EXACTLY the winning score. Changing it to >= solves the issue.
Bianca Power
495 PointsBianca Power
495 PointsThis is my code: