/solverdle

Help solving Wordle

Primary LanguageTypeScript

Solverdle

This is a silly wordle solver that helps me play the game with my kids.

There's two ways to use it:

Command-line usage

The command line is a little wonky, but it works:

./bin/solve \
  -b c=0:o=0:a=0:e=1:t=0:u=0 \
  -y e=0,2:n=1,4:r=4 \
  -g r=1:i=2:n=3:e=4

Where:

  • -b for black squares, a colon-separated list of key-value pairs, where the key is the letter and the value is the number of yellow or green squares that contain the letter
  • -y for yellow squares, a colon-separated list of key-value pairs, where the key is the letter and the value is a comma-separated list of zero-based indices
  • -g for green squares, a colon-separated list of key-value pairs, where the key is the letter and the value is a comma-separated list of zero-based indices