Skip to content

Instantly share code, notes, and snippets.

@nicholasf
Forked from carwin-datarock/The New Wordle.md
Created August 7, 2025 08:16
Show Gist options
  • Save nicholasf/c9c912c6447bbd784b62d5ffc87f5c21 to your computer and use it in GitHub Desktop.
Save nicholasf/c9c912c6447bbd784b62d5ffc87f5c21 to your computer and use it in GitHub Desktop.

Welcome to "The New Wordle"

Our company is all about Wordle related things and we'd like you to model a system that can support Wordle tournaments. We're very serious about making this a success, so this needs to be production quality design.

Now

The first priority is a global leader-board which will tell users their world ranking.

  • We will release a game each day and people will have 24 hours to complete it.
  • Once players have played 10 games, they will appear in the ranking
  • Players will be ranked by the amount of guesses they needed to complete a game and/or the amount of time taken. We're not really sure what combination of those two metrics will work best, so we'd like to have multiple ranking algorithms to start with so we can determine the best one.

Later

In the future, we'd like to have a 1 vs 1, knock-out competetion that culminates in the grand final, but this is out of scope for now.

WORD_LIST = ["PLATE", "LEAST", "SLATE", "RAISE", "CODER", "SCALE", "STARE", "SASSY"]

When a game of Wordle begins, a 5-letter word is chosen at random from a list of words.

The player must try to guess the word by entering a five-letter word.

After each guess, letters are marked as follows:

  • 🟩 = correct letter, correct position
  • 🟨 = correct letter, wrong position
  • ⬜ = letter not in word

Example:

  • Word: CODER
  • Guess: ULCER
  • Result: ⬜⬜🟨🟩🟩

Example:

  • Word: CODER
  • Guess: CODER
  • Result: 🟩🟩🟩🟩🟩 (game won)

A player wins the game if they correctly guess the word within six attempts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment