Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Magdalena Frankowska
15,501 PointsHangman - getCurrentProgress()
Can anyone tell me what the getCurrentProgress() does ? He just writes it out of thin air and I can't connect it to anything.
2 Answers

Steve Hunter
57,684 PointsHi there,
From memory (which is a dangerous thing to rely on!!) the getCurrentProgress()
method displays how well you are doing at guessing the whole string. So, it inserts letters where you've correctly guessed and a dash where you haven't got the letter yet:
--------- // no correct guesses
T-EE----E // guessed T & E
I hope that helps,
Steve.

Magdalena Frankowska
15,501 PointsThanks :)

Steve Hunter
57,684 PointsNo problem!