Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

LoveMathFermat

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.

  • one year ago
  • one year ago

  • This Question is Closed
  1. rsmith6559
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • one year ago
  2. bwCA
    Best Response
    You've already chosen the best response.
    Medals 1

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

    • one year ago
  3. JonnyTruelove
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • one year ago
    • Attachments:

See more questions >>>

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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.