makersacademy / problem-solving

For problem-solving during the PreCourse
6 stars 2 forks source link

Chapter 6 Question 3 #148

Closed alakijaayo closed 6 years ago

alakijaayo commented 6 years ago

Having a problem with getting either Atom or the gems to accept this answer and I am not sure what the problem is. From a base standpoint the program does give me the answers I want but this does not get accepted when I try to run through spec. However, if I try to add breaks into the code, I get an error message saying that the break is invalid.

Not sure what I have to do, or do i need to start from scratch? screen shot 2018-08-16 at 13 46 35

djstephenson7 commented 6 years ago

It could be down to inconsistent indentation

camjw commented 6 years ago

I think the issue is that you haven't included a while loop. The program is supposed to continue running until the player walks into the sunlight (so they can go from the passage to the cave as many times as they want) and the breaks are to break the while loop. Hope this helps!

alakijaayo commented 6 years ago

@camjw cheers for that. Working on it now. Much appreciated