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

hangman problem

OpenStudy (opcode):

Do tell?

OpenStudy (anonymous):

I am confused on how to approach this problem. I read the prof. instruction and yet still not clear

OpenStudy (turingtest):

it's very hard to answer such a general question. please try to explain what exactly you don't understand.

OpenStudy (anonymous):

For example how to use chooseWord? When I call chooseWord(WORRS_FILENAME), I get an alphabet and not a word from words.txt

OpenStudy (anonymous):

You first need to get the wordlist and then pass that to chooseWord like this. wordlist = loadWords() random_word = chooseWord(wordlist) Now if you print random_word it will contain a random word from wordlist.

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!