Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 879 Bytes

README.md

File metadata and controls

55 lines (43 loc) · 879 Bytes

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