Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

Hi fellow OCW student, I have one more question about the hangman game. http://pastebin.com/gkKuk53f Here is my code. I'm trying to write a function that goes through available letters and return a value if it wasn't used before or re-ask to input a value if it was used before. Are there any suggestions ? The longer function is my main body.

OpenStudy (rsmith6559):

You could make a list of guessed letters, and check to see if the current guess is not in that list.

OpenStudy (anonymous):

ask the question in the function http://dpaste.com/999240/

OpenStudy (anonymous):

That's your code? You DO realize that hangman is going to require a pellet ton more work than that. That's not even scratching the surface. Go to the invent with python (I think[it could be another one like think python or think like a computer scientist]) hangman its got all the source and explains everything.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!