public class WordleTester
extends java.lang.Object
Constructor and Description |
---|
WordleTester()
Constructs a new WordleTester object and chooses a random solution String
for the game.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColorResponse(java.lang.String guess)
Returns the response to your guess indicating which letters you have correct
and in what positions.
|
public WordleTester()
public java.lang.String getColorResponse(java.lang.String guess)
For example, a response of "GYNGY" means: G - the 1st letter is correct and in the correct position Y - the 2nd letter is correct but not in this position N - the 3rd letter is either not in the word or does not appear this many times G - the 4th letter is correct and in the correct position Y - the 5th letter is correct but not in this position
guess
- The word being guessed