mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About
Link blog

Solving Wordle with uv's dependency resolver

on 08-07-2025 12:01

In this article, the author solves Wordle by encoding the game information as Python package versions and then using uv's dependency resolver figure that out.

The very summarised gist of it is that different packages represent different types of information and then their versions encode the letters that go where. Then, the author created all the necessary fake packages locally (around 5,000 of them) and then got the dependency resolver to play the game by trying to resolve the dependencies of these fake packages.

Previous link Next link

The 2 hardest problems in programming are naming, cache invalidation, and off-by-one errors.

mathspp
  • Blog
    • Pydon'ts
    • Problems
    • TIL
    • Twitter threads
  • Books
  • Talks
  • Trainings
    • Advanced iteration
    • Python for scripting and automation
    • Rust for Python developers
  • Courses
  • About