Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

LoveMathFermat

  • one year 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 re-ask to input a value if it was used before. Are there any suggestions ? The longer function is my main body.

  • This Question is Closed
  1. rsmith6559
    • one year ago
    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.

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

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

  3. JonnyTruelove
    • one year ago
    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.

  4. Not the answer you are looking for?
    Search for more explanations.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find 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
  • 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.