https://github.com/KevinXuxuxu/wordle_machine Skip to content Sign up * Why GitHub? + Features + Mobile + Actions + Codespaces + Packages + Security + Code review + Issues + Integrations + GitHub Sponsors + Customer stories * Team * Enterprise * Explore + Explore GitHub + Learn and contribute + Topics + Collections + Trending + Learning Lab + Open source guides + Connect with others + The ReadME Project + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing + Plans + Compare plans + Contact Sales + Education [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} KevinXuxuxu / wordle_machine Public * Notifications * Fork 0 * Star 1 * commandline version of wordle game (https://www.powerlanguage.co.uk/ wordle/), and my auto solver. 1 star 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Latest commit @KevinXuxuxu KevinXuxuxu . ... 64a8534 Jan 22, 2022 . 64a8534 Git stats * 8 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore first commit Jan 14, 2022 README.md . Jan 22, 2022 benchmark.py add benchmark in readme Jan 22, 2022 word_list.txt first commit Jan 14, 2022 wordle.py update a few APIs and add benchmark Jan 15, 2022 wordle_machine.py refactor wordle_machine Jan 15, 2022 View code Wordle Machine (and Wordle Game) (in commandline) How to run? Benchmark TODO README.md Wordle Machine (and Wordle Game) (in commandline) My implementation of the Wordle game (inspired by https:// www.powerlanguage.co.uk/wordle/) and my interactive solving machine for the Wordle game. The strategy is originated from this blog post Best Wordle Strategy -- Explore or Exploit and I'm still working on some optimization over that. How to run? git clone https://github.com/KevinXuxuxu/wordle_machine.git cd wordle_machine * Wordle game: # need python 3 # ! for correct letter at correct position # ? for correct letter at wrong position # _ for wrong letter $ python3.9 wordle.py Welcome to Wordle! Guess 1: aeros # <- your input Result: _!__! Guess 2: unlit # <- your input Result: ____? Guess 3: techs # <- your input Result: ?!_?! Guess 4: heets # <- your input Guess must be a proper word with 5 letters! Guess 4: hetts # <- your input Guess must be a proper word with 5 letters! Guess 4: herts # <- your input Guess must be a proper word with 5 letters! Guess 4: hetes # <- your input Result: !!!!! Congrats! * wordle machine (interactive mode) # need python 3 # next guess is given, input the response in same format $ python3.9 wordle_machine.py Interactive mode: Guess 1: aeros Result: _?___ # <- your input Number of possible words: 568 Guess 2: unlit Result: _?_?_ # <- your input Number of possible words: 52 Guess 3: binge Result: _!!_! # <- your input Number of possible words: 7 Guess 4: jinne Result: _!!_! # <- your input Number of possible words: 6 Guess 5: mince Result: _!!!! # <- your input Number of possible words: 2 Guess 6: wince Result: !!!!! # <- your input Congrats! Benchmark Success rate around 86% for now. $ python3.9 benchmark.py max 6 guesses, 10000 plays Success stats: {1: 0, 2: 1, 3: 1674, 4: 3382, 5: 2332, 6: 1228} Success distro: {1: 0.0, 2: 0.0001, 3: 0.1674, 4: 0.3382, 5: 0.2332, 6: 0.1228} Failed count and rate: 1383 0.1383 TODO * Better word choosing strategy (now just the first word in the possible list) * Better cmd option for alternate strategy choice * NFT? * Web 3.0? About commandline version of wordle game (https://www.powerlanguage.co.uk/ wordle/), and my auto solver. Resources Readme Stars 1 star Watchers 1 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * Python 100.0% * (c) 2022 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.