Coder Social home page Coder Social logo

wordle-postgame's Introduction

Wordle Analysis Tool

Mostly just written for myself. A tool to run analysis on how good my wordle guesses were.

Examples

Post-game analysis

Compare an actual playthrough against a heuristic of reducing the remaining words as much as possible.

$ python3 analysis.py analysis.py ph rales bound rainy
Post-hoc analysis of game with answer 'rainy', with a dictionary size 5522

Guess #1: 'rales'
At the time, the guess could be expected to leave 119.1 words (using a precalculated score)
After elimination, 19 words remain. Got lucky by 6.0x
Specifically: ['rabbi', 'rabic', 'rabid', 'radar', 'radii', 'radio', 'radix', 'radon', 'rainy', 'rajah', 'ranch', 'randy', 'rangy', 'rapid', 'ratio', 'ratty', 'ravin', 'rayon', 'razor']

Guess #2: 'bound'
At the time, the guess could be expected to leave 1.9 words
Skill score: 10.8/10
Skill score (easy mode): 7.3/10
Spectrum percent: 101.4%
   vs best 'bodhi' (easy) at 1.4 word est.
   vs best 'radio' at 2.1 word est.
   vs worst 'rajah' at 13.6 word est.
After elimination, 1 words remain. Got lucky by 1.5x
Specifically: ['rainy']

Guess #3: 'rainy'
At the time, the guess could be expected to leave 0.0 words
Found the final word. Got exactly the expected luck

Lucky game, by: 8.8x

In this example, "bound" was better than the best "hard mode" guess ("radio"). Hard mode is the restriction that you must use letters that follow the rules you have found so far. But "bound" was not as good as the best easy-mode guess of "bodhi".

Heuristic-driven play

See how a simple algorithm ("AI" heh) would have tried to play the game. It tries to reduce the remaining words as much as possible at each step.

$ python3 analysis.py ai mummy

Guess #1: 'rales'
358 more words found
Guess #2: 'tonic', with estimated 9.8 remaining
Specifically: {'kudzu', 'muzzy', 'fuzzy', 'guppy', 'vuggy', 'hudud', 'mummy', 'pudgy', 'bumpy', 'fuddy', 'muddy', 'jugum', 'buffy', 'hubby', 'dumpy', 'humpy', 'puppy', 'buggy', 'huffy', 'humph', 'muggy', 'gummy', 'jumpy', 'dummy', 'yummy', 'buddy', 'pygmy', 'puffy', 'buzzy', 'whump'}
30 more words found
Guess #3: 'bumpy', with estimated 2.8 remaining
Specifically: {'dummy', 'mummy', 'gummy', 'yummy'}
4 more words found
Guess #4: 'midge', with estimated 1.0 remaining
Specifically: {'mummy'}
Trivial guess #5: mummy

wordle-postgame's People

Contributors

carver avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.