[Question]
  [
Sometimes when you're playing Wordle, you get to your fifth guess and you can't figure out the word any more, so you start mentally running through the list of remaining iterations, both sensical and nonsensical trying to figure out what those last few letters are.
The task here is to create all permutations of a final Wordle guess to save me from having to do it in my head, with the following rules:
### General rules:
* Wordle rules apply (similar to codebreaker game).
	+ Guess an unknown five-letter word.
	+ Guesses will return an indication of whether the letter is in the word such that:
		- If a letter is in the correct position, it will be green
		- If a letter appears in the word but is not in the correct position, it will be yellow
		- If a letter does not appear in the word, it will be black.
		- Letters can appear more than once in the solution (provided the solution is still a valid word)
		- If a letter is guessed twice in the same guess (such as "guess") but is in the correct word fewer times than guessed, only the number of the repeated letters will be green or yellow. If the position is correct for one of the placements, that will appear green, regardless of the position in the sequence. If the positions are all wrong, the earliest occurence/s will be marked yellow and the following one/s black.
* Inputs should be solvable, even if no solutions are "real" words.
* Since Wordle only uses valid English words, only letters that appear on a standard English keyboard (a-z) need to be tested. **However, you should include all valid permutations, not just valid English words, in your output**.
* Solution is case insensitive.
### Input:
* A list of letters and indices (0 or 1 indexed, your choice), indicating the location of confirmed/green letters - **indicate the index you chose**;
* A list of letters and indices (consistently indexed), indicating yellow letters (i.e. the letter is known to not be at that index);
* A list/string of letters that are yet to be guessed.
Note, **green and yellow letters may still appear in more than the known positions**. For example, if the input for green is `[('E', 1)]`, there may still be an `E` in an index other than `1` as well.
### Output:
All potential "words" of exactly 5 letters, such that the green letters are in the indicated indexes, the yellow letters are not in the indicated indexes (but must appear at least once in the output), and the words consist of only the green, yellow, and remaining letters. The output may be in any order.
What's the shortest way to solve this problem? You may take input and output in any [convenient method or format](https://codegolf.meta.stackexchange.com/q/2447), and the shortest code in bytes wins.
---
### Example:
1. **Green Guesses** (1 indexed): O=2, E=4, N=5
2. **Yellow Guesses**: N!=3 (E!=5 is excluded because we know N=5)
3. **Unguessed Letters**: Q, W, I, P, F, J, K, X, B
All other letters (A, C, D, F, G, H, L, M, R, S, T, U, V, Y, Z) have been guessed and cannot occur in the result.
Output would be a list of all possible permutations given the known information, such as:
```
["BOBEN", "BOEEN", "BOFEN", "BOIEN", "BOJEN", "BOKEN", "BOOEN", "BOPEN", "BOQEN", "BOWEN", "BOXEN", "EOBEN", "EOEEN", "EOFEN", "EOIEN", "EOJEN", "EOKEN", "EOOEN", "EOPEN", "EOQEN", "EOWEN", "EOXEN", "FOBEN", "FOEEN", "FOFEN", "FOIEN", "FOJEN", "FOKEN", "FOOEN", "FOPEN", "FOQEN", "FOWEN", "FOXEN", "IOBEN", "IOEEN", "IOFEN", "IOIEN", "IOJEN", "IOKEN", "IOOEN", "IOPEN", "IOQEN", "IOWEN", "IOXEN", "JOBEN", "JOEEN", "JOFEN", "JOIEN", "JOJEN", "JOKEN", "JOOEN", "JOPEN", "JOQEN", "JOWEN", "JOXEN", "KOBEN", "KOEEN", "KOFEN", "KOIEN", "KOJEN", "KOKEN", "KOOEN", "KOPEN", "KOQEN", "KOWEN", "KOXEN", "NOBEN", "NOEEN", "NOFEN", "NOIEN", "NOJEN", "NOKEN", "NOOEN", "NOPEN", "NOQEN", "NOWEN", "NOXEN", "OOBEN", "OOEEN", "OOFEN", "OOIEN", "OOJEN", "OOKEN", "OOOEN", "OOPEN", "OOQEN", "OOWEN", "OOXEN", "POBEN", "POEEN", "POFEN", "POIEN", "POJEN", "POKEN", "POOEN", "POPEN", "POQEN", "POWEN", "POXEN", "QOBEN", "QOEEN", "QOFEN", "QOIEN", "QOJEN", "QOKEN", "QOOEN", "QOPEN", "QOQEN", "QOWEN", "QOXEN", "WOBEN", "WOEEN", "WOFEN", "WOIEN", "WOJEN", "WOKEN", "WOOEN", "WOPEN", "WOQEN", "WOWEN", "WOXEN", "XOBEN", "XOEEN", "XOFEN", "XOIEN", "XOJEN", "XOKEN", "XOOEN", "XOPEN", "XOQEN", "XOWEN", "XOXEN"]
```
Output may be in any order.
In this case:
* There are 12 possibilities for the first letter (any of "BEFIJKNOPQWX")
* There is 1 possibility for the second letter ("O")
* There are 11 possibilities for the third letter (any of "BEFIJKOPQWX", excluding N)
* There is 1 possibility for the fourth letter ("E")
* There is 1 possibility for the fifth letter ("N")
So the result should contain a total of 12 \* 1 \* 11 \* 1 \* 1 = 132 items.
In code terms, the inputs may be given as:
* `[['O', 2], ['E', 4], ['N', 5]]` or `[["O", "E", "N"], [2, 4, 5]]` or similar
* `[['N', 3]]` or `[["N"], [3]]` or similar
* `"QWIPFJKXB"` or `["Q","W","I","P","F","J","K","X","B"]` or similar
and the output as:
```
['BOBEN', 'EOBEN', 'FOBEN', 'IOBEN', 'JOBEN', 'KOBEN', 'NOBEN', 'OOBEN', 'POBEN', 'QOBEN', 'WOBEN', 'XOBEN', 'BOEEN', 'EOEEN', 'FOEEN', 'IOEEN', 'JOEEN', 'KOEEN', 'NOEEN', 'OOEEN', 'POEEN', 'QOEEN', 'WOEEN', 'XOEEN', 'BOFEN', 'EOFEN', 'FOFEN', 'IOFEN', 'JOFEN', 'KOFEN', 'NOFEN', 'OOFEN', 'POFEN', 'QOFEN', 'WOFEN', 'XOFEN', 'BOIEN', 'EOIEN', 'FOIEN', 'IOIEN', 'JOIEN', 'KOIEN', 'NOIEN', 'OOIEN', 'POIEN', 'QOIEN', 'WOIEN', 'XOIEN', 'BOJEN', 'EOJEN', 'FOJEN', 'IOJEN', 'JOJEN', 'KOJEN', 'NOJEN', 'OOJEN', 'POJEN', 'QOJEN', 'WOJEN', 'XOJEN', 'BOKEN', 'EOKEN', 'FOKEN', 'IOKEN', 'JOKEN', 'KOKEN', 'NOKEN', 'OOKEN', 'POKEN', 'QOKEN', 'WOKEN', 'XOKEN', 'BOOEN', 'EOOEN', 'FOOEN', 'IOOEN', 'JOOEN', 'KOOEN', 'NOOEN', 'OOOEN', 'POOEN', 'QOOEN', 'WOOEN', 'XOOEN', 'BOPEN', 'EOPEN', 'FOPEN', 'IOPEN', 'JOPEN', 'KOPEN', 'NOPEN', 'OOPEN', 'POPEN', 'QOPEN', 'WOPEN', 'XOPEN', 'BOQEN', 'EOQEN', 'FOQEN', 'IOQEN', 'JOQEN', 'KOQEN', 'NOQEN', 'OOQEN', 'POQEN', 'QOQEN', 'WOQEN', 'XOQEN', 'BOWEN', 'EOWEN', 'FOWEN', 'IOWEN', 'JOWEN', 'KOWEN', 'NOWEN', 'OOWEN', 'POWEN', 'QOWEN', 'WOWEN', 'XOWEN', 'BOXEN', 'EOXEN', 'FOXEN', 'IOXEN', 'JOXEN', 'KOXEN', 'NOXEN', 'OOXEN', 'POXEN', 'QOXEN', 'WOXEN', 'XOXEN']
```
  
[Answer]
# [Python 3](https://docs.python.org/3/), ~~198 176 205 166 152~~ 138 bytes
```
lambda g,y,u:{m for m in product(*[x or u+''.join(g+[a for a,b in y])for x in g])if all(m[q]!=p in m for p,q in y)}
from itertools import*
```
### [Try it online!](https://tio.run/##TY1Pi8IwEMXvforxNIkNe1hvQi@Cggru7mmF2EO0TY00f0xTsIifvSZdDzswj3mPH/NcHy7WzAeZH4dG6FMpoGY96xYPDdJ60KAMOG/L7hzIjN8hZl2G@HG1ypA642LEBDslsC9ocvd01wVVEkTTEM1vxTR3Kfx76thtpOlzIr2NFaHywdqmBaWd9WE2OK9M7GujqUoygXEk4YgM8CtJ2lWSPRbsDQBwEj2DT/ovw5/fzfd6uzsskb5DyqCtXI5Hg3R4AQ "Python 3 – Try It Online")
* -22, -39, -14 thanks to Steffan
* Thanks to Kamil Drakari for pointing out some bugs in the code
So, it didn't work before. I've now fixed it (I think).
Other test cases [here](https://tio.run/##TY3NasMwEITvfortaSVH9JDeCr4UGkgCTdJLC7IPSm05CtZPZBliSp/dlVwfurDDzsew48ZwseZpkkU5dUKfawEtG9nw/K1BWg8alAHnbT18BZLzO0Q2rBAfr1YZ0q64mGOCnVNwrGhy93S3FVUSRNcRzW/VQ@ES/Hvq2G1O059MehsrQuODtV0PSjvrQz45r0zs66NpapLBPJJwRAZ4SJL2NckbVmwJAHCC7xGu6T@Gp4/tcbPbf74gXSBl0DeuwNIgnX4B), [here](https://tio.run/##TY1Pa8MwDMXv/RTqSXZrxmhvhRzWw2DbYRustODm4C5x5hH/ieNAQulnT@20hwr0kJ5@6Lkh/FmzHmV2HGuhT4WAig2s25w1SOtBgzLgvC2630AWvIfodUvEp3@rDKmWXEyYYKcEDjlNW5/mKqdKgqhronmTzzOXzNtTx5qJppeZ9DZGhNIHa@sWlHbWh8XovDIxr41LWZAZTCUJR2SA2ySpd0l@MGd3AIAT/IzmM2VA8CVOK/pwxe/929fr@8dhi/RuRrAtXYZHg3S8Ag) and [here](https://tio.run/##TY1PawIxEMXvforxNImGUuxN2EM9FGwPbaFSIe4hdjfbyOaP2Sy4lH72NYkiDszw3psfM24Iv9Y8jbLYja3Q@0pAwwbWL/80SOtBgzLgvK36n0Bm/AQx6@eIDwerDGnmXGRMsH0Ch5Imd0q6KamSINqWaH4sp4VL4eWoY8dM0/@J9Da@CLUP1rYdKO2sD7PReWXivy6auiITyCUJR2Rw600aX1iy6x6AE3yP4SNlQPA5qkVWq6zuOPz8Xn@8vL5tV0ivYQS72hW4M0jHMw).
# [Python 3](https://docs.python.org/3/) + [`golfing-shortcuts`](https://github.com/nayakrujul/golfing-shortcuts), ~~131~~ 121 bytes
```
lambda G,Y,U:{M for M in Ip(*[X or U+sj('',G+[A for A,B in Y])for X in G])if j(M[Q]!=P in M for P,Q in Y)}
from s import*
```
* -10 thanks to Steffan
---
**Input:**
* `g`: The green letters, as a list, e.g. `['', 'O', '', 'E', 'N']`
* `y`: The yellow letters, in tuples with their positions, e.g. `[('N', 2)]`
* `u`: The unguessed letters, as a string: e.g. `'QWIPFJKXB'`
**Output:**
As letter tuples, e.g. `('Q', 'O', 'Q', 'E', 'N')`
[Answer]
# [Charcoal](https://github.com/somebody1234/Charcoal), 55 bytes
```
ＵＭθ∨ι⁻⪪α¹⁺⪪§ηκ¹⁻⪪α¹⁺θ⪪⁺ζΣη¹ΦＥΠＥθＬι⭆θ§λ÷ιΠ∨Ｅ…θμＬν¹⬤Ση№ιλ
```
[Try it online!](https://tio.run/##dY7LSgMxFIb3PkXI6gSOC9dd6WhhtHVGulAoXYSZ0ATPJDVmivryMZe2uDGQcC75P75BSz84STGu5aFx0yTtCB/IOg8G2drY@RM2BzIBJLIbgayny@Q2tHZUX6CRvYu6/S@QiHVYup/UzRNoUVL1LK56b2yApaGgPCQb6L0b5yGUOgFWyu6DBiNybBPS7/1pcxYhZK0N9@ZoRpX1z4Cu8prvgVSjXclM4kK0fzwSjAiqHbLGzUkpkagoxrjdco6Md/nJ9yE/z3yHrC5qeyrymL@8tv3y8entju/i9ZF@AQ "Charcoal – Try It Online") Link is to verbose version of code. Takes input in the `["", "O", "", "E", "N"]`, `["", "", "N", "", ""]`, `"QWIPFJKXB"` formats, i.e. multiple letters unguessed or in a given yellow position should be concatenated into a string rather than being a subarray. Explanation:
```
ＵＭθ∨ι⁻⪪α¹⁺⪪§ηκ¹⁻⪪α¹⁺θ⪪⁺ζΣη¹
```
Fill in the gaps in the green guesses by taking the set union of all of the input and subtracting the yellow guesses for that position. (Charcoal doesn't actually do set union so I have to fake it by set difference with the whole alphabet twice.)
```
ＥΠＥθＬι⭆θ§λ÷ιΠ∨Ｅ…θμＬν¹⬤Ση№ιλ
```
Calculate the number of potential words and map each to a string by mixed base conversion using the lists of possible letters (which again Charcoal has to emulate, although at least it has cyclic indexing to help). Ensure those words contain at least one of all of the yellow guesses.
50 bytes using the newer version of Charcoal on ATO that can take the product of an empty list and flatten a list of lists:
```
ＵＭθ∨ι⁻⪪α¹⁺§ηκ⁻⪪α¹⁺Σθ⁺ζΣηΦＥΠＥθＬι⭆θ§λ÷ιΠＥ…θμＬν⬤Ση№ιλ
```
[Attempt This Online!](https://ato.pxeger.com/run?1=dVA9T8MwEBUrEv_B8nSR3IENiQkClQK0DeoAkpUhJCGxuNhtYlfAX2HpAIK_BL8Gn5tGLHh49_Xu3ZPfvoom7wqT43b74ezj5OTn4GiWr2LTtrkuYS3YogMl2Exp18NyhcpCLthxJFiKvnNmE11Wz9AI9hT9T1u6Ftb74lUwqptoeKeHaae0halCW3Xgz0PamdIVNuTew02la9uA8mS_az27Hib7-yhYou2F2qiyIr9_BeKXAqu4MWGhjUY5Pdz3KoiwsyRYbJz34iUweHvvH4p--JtPyScb5Nl3LaXMBJN8wSmE9DKkfM4zinLsz0dKGPBbLhi_I0gIUoIpwRXBNcE9wbkX2p39BQ "Charcoal – Attempt This Online") Link is to verbose version of code. Takes input in the `["", "O", "", "E", "N"]`, `[[], [], ["N"], [], []]`, `["Q", "W", "I", "P", "F", "J", "K", "X", "B"]` formats, i.e. letters unguessed or in a given yellow position need to be a subarray (both formats work for the green letters).
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 38 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
```
5ÆgX ªNc kVgX)fÃrÈï[Y]c '+Ãf@Vc e!øXÃâ
```
[Try the original test case](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NcZnWCCqTmMga1ZnWClmw3LI71tZXWMgJyvDZkBWYyBlIfhYw%2bI&input=WyIiICJPIiAiIiAiRSIgIk4iXSBbW10gW10gWyJOIl0gW10gW11dIFsiUSIsIlciLCJJIiwiUCIsIkYiLCJKIiwiSyIsIlgiLCJCIl0tUg), or [check that it's right](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NcZnWCCqTmMga1ZnWClmw3LI71tZXWMgJyvDZkBWYyBlIfhYw%2bI&footer=8SBlWyJCT0JFTiIiRU9CRU4iIkZPQkVOIiJJT0JFTiIiSk9CRU4iIktPQkVOIiJOT0JFTiIiT09CRU4iIlBPQkVOIiJRT0JFTiIiV09CRU4iIlhPQkVOIiJCT0VFTiIiRU9FRU4iIkZPRUVOIiJJT0VFTiIiSk9FRU4iIktPRUVOIiJOT0VFTiIiT09FRU4iIlBPRUVOIiJRT0VFTiIiV09FRU4iIlhPRUVOIiJCT0ZFTiIiRU9GRU4iIkZPRkVOIiJJT0ZFTiIiSk9GRU4iIktPRkVOIiJOT0ZFTiIiT09GRU4iIlBPRkVOIiJRT0ZFTiIiV09GRU4iIlhPRkVOIiJCT0lFTiIiRU9JRU4iIkZPSUVOIiJJT0lFTiIiSk9JRU4iIktPSUVOIiJOT0lFTiIiT09JRU4iIlBPSUVOIiJRT0lFTiIiV09JRU4iIlhPSUVOIiJCT0pFTiIiRU9KRU4iIkZPSkVOIiJJT0pFTiIiSk9KRU4iIktPSkVOIiJOT0pFTiIiT09KRU4iIlBPSkVOIiJRT0pFTiIiV09KRU4iIlhPSkVOIiJCT0tFTiIiRU9LRU4iIkZPS0VOIiJJT0tFTiIiSk9LRU4iIktPS0VOIiJOT0tFTiIiT09LRU4iIlBPS0VOIiJRT0tFTiIiV09LRU4iIlhPS0VOIiJCT09FTiIiRU9PRU4iIkZPT0VOIiJJT09FTiIiSk9PRU4iIktPT0VOIiJOT09FTiIiT09PRU4iIlBPT0VOIiJRT09FTiIiV09PRU4iIlhPT0VOIiJCT1BFTiIiRU9QRU4iIkZPUEVOIiJJT1BFTiIiSk9QRU4iIktPUEVOIiJOT1BFTiIiT09QRU4iIlBPUEVOIiJRT1BFTiIiV09QRU4iIlhPUEVOIiJCT1FFTiIiRU9RRU4iIkZPUUVOIiJJT1FFTiIiSk9RRU4iIktPUUVOIiJOT1FFTiIiT09RRU4iIlBPUUVOIiJRT1FFTiIiV09RRU4iIlhPUUVOIiJCT1dFTiIiRU9XRU4iIkZPV0VOIiJJT1dFTiIiSk9XRU4iIktPV0VOIiJOT1dFTiIiT09XRU4iIlBPV0VOIiJRT1dFTiIiV09XRU4iIlhPV0VOIiJCT1hFTiIiRU9YRU4iIkZPWEVOIiJJT1hFTiIiSk9YRU4iIktPWEVOIiJOT1hFTiIiT09YRU4iIlBPWEVOIiJRT1hFTiIiV09YRU4iIlhPWEVOIl3x&input=WyIiICJPIiAiIiAiRSIgIk4iXSBbW10gW10gWyJOIl0gW10gW11dIFsiUSIsIlciLCJJIiwiUCIsIkYiLCJKIiwiSyIsIlgiLCJCIl0tUQ)
[Try my proposed test case](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NcZnWCCqTmMga1ZnWClmw3LI71tZXWMgJyvDZkBWYyBlIfhYw%2bI&input=WyIiICJCIiAiIiAiVSIgIlQiXSBbWyJPIl0gW10gWyJBIl0gW10gW11dIFsiUSIsIlciLCJJIiwiUCIsIkYiLCJKIiwiSyIsIlgiXS1S)
[Try another case demonstrating multiple yellow letters in the same position](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NcZnWCCqTmMga1ZnWClmw3LI71tZXWMgJyvDZkBWYyBlIfhYw%2bI&input=WyIiICIiICIiICJVIiAiVCJdIFtbIk8iXSBbIiJdIFsiQSIiQiJdIFsiIl0gWyIiXV0gWyJRIiwiVyIsIkkiLCJQIiwiRiIsIkoiLCJLIiwiWCJdLVI)
[Try a fourth test case with a yellow letter in the same position as a green letter](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NcZnWCCqTmMga1ZnWClmw3LI71tZXWMgJyvDZkBWYyBlIfhYw%2bI&input=WyIiICJPIiAiIiAiRSIgIk4iXSBbW10gW10gWyJOIl0gWyJUIl0gW11dIFsiUSIsIlciLCJJIiwiUCIsIkYiLCJKIiwiSyIsIlgiLCJCIl0tUg)
Input format in order:
* Green letters as an array with `""` for unkown, e.g. `["", "O", "", "E", "N"]`
* Yellow letters as an array of arrays of letters for each position, e.g. `[[], [], ["N"], [], []]`
* Unguessed letters as an array of letters, e.g. `["Q","W","I","P","F","J","K","X","B"]`
High-level explanation:
```
5ÆgX ªNc kVgX)fÃrÈï[Y]c '+Ãf@Vc e!øXÃâ
5ÆgX ªNc kVgX)fÃ                       # Find the valid letters for each position
                rÈï[Y]c '+Ã            # Generate words from the possible letters
                           f@Vc e!øXÃ  # Ensure that all yellow letters are used
                                     â # Remove duplicates
```
Details:
```
5ÆgX ªNc kVgX)fÃ
5Æ             Ã # For each X in range [0...4]:
  gX             #  Return the green letter at index X if possible
     ª           #  Otherwise
      Nc         #  Get all letters from the three inputs
         k   )   #  Remove:
          VgX    #   The yellow letters at index X
              f  #  Remove empty strings
rÈï[Y]c '+Ã      
r         Ã      # Reduce the array of valid letters in steps:
 È               #  Current array of prefixes
   [Y]c          #  Possible next letters (converted to array if needed)
  ï              #  Cross product of those two arrays
        '+       #  Concatenate each prefix and letter
f@Vc e!øXÃ
f@       Ã       # Remove any word X where this is false:
  Vc             #  Flatten yellow letters to a single array
     e           #  Return true only if every letter:
      !øX        #   is contained in X
```
[Answer]
# [Ruby](https://www.ruby-lang.org/), 117 bytes
```
->g,y,u{a,*b=g.map{|x|(x>''?x:u+(g+y.map{_1[0]})*'').chars};a.product(*b).select{|m|y.all?{m[_2]!=_1&&m!=m-[_1]}}|[]}
```
[Attempt This Online!](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY3S3Xt0nUqdUqrE3W0kmzT9XITC6prKmo0KuzU1e0rrEq1NdK1K8Gi8YbRBrG1mlrq6pp6yRmJRcW11ol6BUX5KaXJJRpaSZp6xak5qckl1TW5NZV6iTk59tW50fFGsYq28YZqarmKtrm60fGGsbW1NdGxtVDLIwtKS4oV0qKj1dV1FNT9QQQIu4IIP_VYHS4FKACq8AMKGsUiiakHhnsGuHl5Rzipx-oV5xeVgFypoWaVlZ-ZpwmxYMECCA0A)
[Answer]
# [Japt](https://github.com/ETHproductions/japt), ~~26~~ 24 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
Takes input as 3 arrays of character strings, or empty strings for blanks, in the order: yellow, green, unguessed. Outputs an array of character arrays
```
c@NcfÃá5 £VíªXÃâ fÈíÀU e
```
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=TmNmIOE1IKNW7apYw%2bIgZsjtwFUgZQ&footer=bazN&input=WyIiLCIiLCJOIiwiIiwiIl0KWyIiLCJPIiwiIiwiRSIsIk4iXQpbIlEiLCJXIiwiSSIsIlAiLCJGIiwiSiIsIksiLCJYIiwiQiJd) - modified to run in a reasonable amount of time without crashing your browser by not allowing letters to be used more than once in each guess.
```
c@NcfÃá5 £VíªXÃâ fÈíÀU e     :Implicit input of arrays U=yellow, V=green & W=unguessed
c                            :Flat map U by
 @                           :Passing each element through the following function
  N                          :  Array of all inputs
   c                         :  Flat map
    f                        :    Filter empty strings
     Ã                       :End map
      á5                     :Permutations of length 5
         £                   :Map each X
          Ví X               :  Interleave V with X
            ª                :  Reducing each pair by Logical OR
              Ã              :End map
               â             :Deduplicate
                 f           :Filter by
                  È          :Passing each through the following function
                   í U       :  Interleave with U
                    À        :  Reducing each pair by testing for inequality
                       e     :  All true?
```
]