Skip to content

momo-dkt/sg-alten-wordle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Societe Generale / Alten - WORDLE Kata

wordle

Welcome to this kata !

Wordle Rules:

  1. If any of your letters are highlighted as green, that means that you’ve got the right letter in the right place.
  2. 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.
  3. Finally, if any of your letters are highlighted as grey, it means that those letters aren’t included anywhere in the secret word.

What is expected from you ?

  1. Provide a working function that check if a 5 letters word is matching a hidden word.
  2. Provide information on how do you ensure your code is working (test).
  3. Make sure your code is readable (meaning a new joiner should be able to understand in less than 1mn).
  4. Working in a team, you'll have to explain how you were organized.

The 4 points are equally important.

What is not expected !

  1. A UI to play at wordle.
  2. An Algorithm that find the final solution for a given hidden word.
  3. An algorithm that takes ages to check a guess against a hidden word. (it should be < 1s, and usually < 10ms)

Constraints.

  • 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.

The outcome function:

  • it's really basic and looks like:
   String check(String guess);

A template class is provided to help you to boostrap a project.

Function rules (mapping wordle rules to something textual)

  1. Input of the function is a world, either in uppercase or lowercase.
  2. Return is a string which always have 5 letters:
    1. If a letter is matching at the right place, return this letter in uppercase.
    2. If a letter is matching not at the right place, return this letter in lowercase.
    3. Any other cases return a "." (without double quote).

examples.

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.

Links / help

  • ⚠️ Read the HELP file to set up your env.
  • Wordle
  • You can organize your teams as you want. here some example:
    • Task identification and attribution (Kanban/scrum/...)
    • Pair Programming
    • Mob Programming
    • Concurrent development (many person doing same thing), then joining to find the best solution
    • ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%