View Single Post
Old Nov 15th, 2006, 2:12 AM   #4
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 894
Rep Power: 4 The Dark is on a distinguished road
The secret word is chosen using the call to the myRand function. At the moment that is being done in the call to playOneRound.
What you need to do is to pick a random word using myRand(10) and store it in a variable, say secret. You can then find the word in the wordlist array using wordlist[secret] and you can find the length of that word using strlen. Remember to use the "secret" variable when you call playOneRound.
The Dark is offline   Reply With Quote