http://qs321.pair.com?node_id=11141315


in reply to Re^2: A Word Game
in thread A Word Game (Update 3)

I tried the updated code, but I still get the same result. Did you test the code with QUOTE as the current word and EMOTE as the guess? Don't you see the 1st "E" as yellow?

Replies are listed 'Best First'.
Re^4: A Word Game
by jwkrahn (Monsignor) on Feb 10, 2022 at 21:28 UTC

    Yeah, sorry, give me a few days to figure it out.    :)

Re^4: A Word Game
by jwkrahn (Monsignor) on Feb 13, 2022 at 00:47 UTC

    I think I've fixed everything.

      Nope, the problem remains (I entered "sinus" as a guess, and the two "s" are yellow, though there's only one "s" in the word to guess, i.e. "paste").

      I think you must have a counter for each letter, to only "lit up" only the right number, starting with the "green" ones.

        I have fixed this specific bug. Enjoy.