Skip to content

niksilver/wordle-helper

Repository files navigation

Wordle helper

Another experiment with Lua: suggest the best words for each turn of Wordle.

Run the application. Use g for green, a for amber/yellow and - for nothing.

$ lua -e "require('words').run()"

1 -------------

    Recommended:
        arose
    Also:
        raise
        arise
        aries
        aires

    Enter your guess: arose
    Enter the clue..: -aa-g

2 -------------

    Recommended:
        rogue
        rouge
        norge
    Also:
        route
        notre
        forge

    Enter your guess: route
    Enter the clue..:

Other actions

Run all the tests with

lua all-test.lua -v

Test the effectiveness of the strategy like this, to run it 100 times and plot the results.

lua -e "require('evaluator').runAndPlot(100)"

There's also a Makefile, so you can do:

$ make run
$ make test
$ make evaluator

About

Suggest words for Wordle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published