This is for java. There are 7(1-7) colors that you can use. For each guess you c
ID: 3805134 • Letter: T
Question
This is for java. There are 7(1-7) colors that you can use. For each guess you choose 4 colors. My question is how do you obtain a list of all the possible combinations? I know that the amount is (7)^4, but I can figure out the algorithm to obtain them.
Here's a visual
Another approach that never takes more than 6 attempts but takes more time for early Guesses is called MiniMax The idea is to create a List containing all possible Guesses (how many are there?). The first Guess in the List has all possible combinations of black and white buttons