Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: A Word Game (update)

by LanX (Sage)
on Feb 09, 2022 at 23:25 UTC ( #11141298=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11141298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2022-09-27 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (119 votes). Check out past polls.

    Notices?