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 trialKyle Whitmore
4,999 PointsIssues with isHIt boolean.
I'm getting two errors with this boolean: cannot find symbol and illegal start of type. I've tracked this boolean throughout all three files and cannot figure out why it is giving me problems. My braces line up and there are no typos as far as I can tell. If someone could help me out that would be great.
Also, in the applyGuess boolean in the game file, is it the return isHit that makes the applyGuess boolean true or false?
2 Answers
pluboj
5,954 PointsHi Kyle,
You have a typo in class Hangman on line 8. The letter 'i' should be lower case. Change isHIt to isHit and you should be fine.
pluboj
5,954 PointsHi Kyle,
It would help if you can post your code.
Kyle Whitmore
4,999 PointsKyle Whitmore
4,999 PointsDidn't even notice that. Thanks man.