316
QB64 Discussion / Re: input random word from txt-file?
« on: January 31, 2019, 11:08:38 am »
You don't need an array. You know the list of words is 1000. Generate a
random number between 1-1000 and read the file up to that number. Display
the word. Then it gets a little tough - a loop to get keyboard input,
see if the letter is in the word, blank that letter if it is, and display
the modified word. Start all over again when a word is solved.
You're using an insanely powerful language. Try to avoid bugs that start
an atomic war.
random number between 1-1000 and read the file up to that number. Display
the word. Then it gets a little tough - a loop to get keyboard input,
see if the letter is in the word, blank that letter if it is, and display
the modified word. Start all over again when a word is solved.
You're using an insanely powerful language. Try to avoid bugs that start
an atomic war.