Coder Social home page Coder Social logo

sg-alten-wordle's Introduction

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

sg-alten-wordle's People

Contributors

ouaibsky avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.