- Wordle Rules:
- What is expected from you ?
- What is not expected !
- Constraints.
- The outcome function:
- Function rules (mapping wordle rules to something textual)
- examples.
- Links / help
Welcome to this kata !
- If any of your letters are highlighted as green, that means that you’ve got the right letter in the right place.
- If any of the letters are highlighted as yellow, that means that those letters are in the word, but they’re currently in the wrong place.
- Finally, if any of your letters are highlighted as grey, it means that those letters aren’t included anywhere in the secret word.
- Provide a working function that check if a 5 letters word is matching a hidden word.
- Provide information on how do you ensure your code is working (test).
- Make sure your code is readable (meaning a new joiner should be able to understand in less than 1mn).
- Working in a team, you'll have to explain how you were organized.
The 4 points are equally important.
- A UI to play at wordle.
- An Algorithm that find the final solution for a given hidden word.
- An algorithm that takes ages to check a guess against a hidden word. (it should be < 1s, and usually < 10ms)
- You can go over internet but if you copy/ paste it will be quickly detected.
- If needed, feel free to use any additional libraries that can help you.
- it's really basic and looks like:
String check(String guess);
A template class is provided to help you to boostrap a project.
- Input of the function is a world, either in uppercase or lowercase.
- Return is a string which always have 5 letters:
- If a letter is matching at the right place, return this letter in uppercase.
- If a letter is matching not at the right place, return this letter in lowercase.
- Any other cases return a "." (without double quote).
Hidden: ALTEN
- providing boost --> result must be: ....t
- providing alarm --> result must be: AL...
- providing alert --> result must be: ALe.t
- providing spiro --> result must be: .....
Hidden: SIREN
Special case:
If the attempt contains letters that is at right place and also wrong place: right place takes the priority:
- providing AGREE --> result must be: ..RE.
- providing SIEGE --> result must be: SIe.. (because there is no second 'E' in SIREN)
Hidden: SIEGE
Special case:
If the attempt contains letters that is at right place and also wrong place: right place takes the priority:
- providing JEWEL --> result must be: .e.e.