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


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

I think you are right about the behavior and it's not the way I saw wordle handling this case.

But the OP didn't want to infringe any copyrights anyway... ;-)

update

more explicitly;

The code does

  1. # Find letters that are in the word
  2. # Find letters that are in the word and at the correct position
it should be the other way round, and correct positions excluded previous to step 2

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery