Feb-13-2019, 12:15 AM
(Feb-12-2019, 11:39 PM)ichabod801 Wrote: Also note that you are still wiping out previous correct guesses. I would change the blanks[count] on line 131 to temp[count]. That way if they've guessed that letter already it will stay in temp. Also note that temp is growing each turn. I would short circuit that by reinitializing temp to an empty string at the start of update_puzzle_string.
Thank you so much for the help.
I realize that I am wiping out previous correct guesses. I need to stop temp from growing, and from erasing previous correct guesses. For example, if I guess a it should be a____. And then if I guess p, I want app__ returned. And then if I guess q, it should just be app__. Right now if I guess a, I get a____. And then if I guess p, I get a_______pp____ because as the function repeats, the temp keeps getting longer. Any way around this problem?