A community for students. Sign up today!
Here's the question you clicked on:
 0 viewing
 2 years ago
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 reask to input a value if it was used before. Are there any suggestions ?
The longer function is my main body.
 2 years ago
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 reask to input a value if it was used before. Are there any suggestions ? The longer function is my main body.

This Question is Closed

rsmith6559
 2 years ago
Best ResponseYou've already chosen the best response.0You could make a list of guessed letters, and check to see if the current guess is not in that list.

bwCA
 2 years ago
Best ResponseYou've already chosen the best response.1ask the question in the function http://dpaste.com/999240/

JonnyTruelove
 2 years ago
Best ResponseYou've already chosen the best response.0That'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.
Ask your own question
Ask a QuestionFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.