Wordle comparison: Difference between revisions
m
→{{header|J}}
m (J: eliminate redundant test) |
m (→{{header|J}}) |
||
Line 179:
Explanation:
<tt><nowiki><I.x=y</nowiki></tt> is a box containing the list of exact match indices, and <tt><nowiki>(<@I.y=/~x#~y~:x)</nowiki></tt> is a list of boxes (one box for each character in the guess) of the indices of
In other words, we build a list of candidate matches for each character and then, for each character, exclude any already picked index and if there's a remaining candidates, we pick the first of those.
|