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 trial

Java

Project 1 having trouble getting all of the tests to pass.

I'm trying to do project 1 but I am failing tests when I run ./gradlew test from the workspace directory.

I get the following failed message:

GameTest > gameCompletesSuccessfully FAILED
java.util.NoSuchElementException
at GameTest.gameCompletesSuccessfully(GameTest.java:64)

I'm not sure what specific conditions my project should meet to ensure that it passes the GameTest gameCompletesSuccessfully test. When I run my program I have no problem completing the game if I guess correctly. I've also made sure that the output meets the condition of "You did it in numAttempts attempt(s)". Could someone help me with what conditions I should try to meet to pass this particular test?

Write all Techdegree question to Slack, Craig Dennis is usually answers about these tests