{"id":15461028,"url":"https://github.com/johnnymo87/wordle-solver","last_synced_at":"2025-07-16T07:43:33.041Z","repository":{"id":72029025,"uuid":"445886129","full_name":"johnnymo87/wordle-solver","owner":"johnnymo87","description":"Wordle Solver","archived":false,"fork":false,"pushed_at":"2022-01-21T16:04:12.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T02:07:28.628Z","etag":null,"topics":["ruby","solver","wordle"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnnymo87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-08T17:35:36.000Z","updated_at":"2022-01-09T21:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"387256c5-4877-4b00-a556-da3eee543f96","html_url":"https://github.com/johnnymo87/wordle-solver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnnymo87/wordle-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymo87%2Fwordle-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymo87%2Fwordle-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymo87%2Fwordle-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymo87%2Fwordle-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnymo87","download_url":"https://codeload.github.com/johnnymo87/wordle-solver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymo87%2Fwordle-solver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265493081,"owners_count":23776180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","solver","wordle"],"created_at":"2024-10-01T23:40:35.364Z","updated_at":"2025-07-16T07:43:32.987Z","avatar_url":"https://github.com/johnnymo87.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordle Solver\n\nThis is a solver for the viral [wordle game](https://www.powerlanguage.co.uk/wordle/). __**STOP! A wordle solver is anti-fun!**__ Unless you have a weird definition of fun, like me :)\n\nThis solver is inspired by [this reddit post](https://www.reddit.com/r/wordlegame/comments/ruqhh6/i_did_some_analysis_on_the_best_words_to_get), and helped along by [this word list](https://gist.github.com/b0o/fcd431739fe483c1fe3aee9381da275d), found by [Maddison Hellstrom](https://github.com/b0o).\n\nRun the solver like so:\n```console\ndocker-compose run --rm app ruby lib/wordle.rb\n```\nThe solver prints five suggestions, but you'll probably only ever take the first one. The first suggested one is always `slate`. Take `slate` and enter it into the wordle game. Take the wordle game's response and enter it into this program, as shown in the demo below. Enter the word you used, followed by a space, followed by a tally of each letter's color, using `g` for green, `y` for yellow, and `b` for black, and then press enter. For example, in the demo below, when I entered `slate` into wordle, it scored `bbgbb`, so I typed `slate bbgbb` into this program, and then the program recommended a new guess to me.\n\n## Demo\n![wordle-solver](https://user-images.githubusercontent.com/3466499/148653596-4a29a114-1ba6-4dce-a45b-a487648f9a36.gif)\n\n## Dependencies\nThe only local dependency you need to configure to use this codebase is `docker-compose`. This is great, because once you have docker working, it eliminates the \"well it works on my machine\" kind of problems. If it works on docker for you, it will work in docker for anyone.\n\n## Install\n* Build the image.\n  ```console\n  docker-compose build\n  ```\n\n## Run\n* Run the app one time and exit:\n  ```console\n  docker-compose run --rm app\n  ```\n* Drop into the container.\n  ```console\n  docker-compose run --rm app bash\n  ```\n* Run the tests.\n  ```console\n  rake test\n  ```\n* Run `irb`.\n  ```console\n  irb -Ilib\n  ```\n* Run the linter.\n  ```console\n  rubocop\n  ```\n  * For more usage instructions, see [the rubocop documentation](https://docs.rubocop.org/rubocop/usage/basic_usage.html).\n\n## Debug\n* Documentation for `debug.gem` is [here](https://github.com/ruby/debug).\n* Set a breakpoint with `require 'debug'; binding.break`.\n* Show where you are with `list` and `list -`.\n* Continue with `continue`.\n* Quit and kill the program with `kill!`.\n* More control flow options are documented [here](https://github.com/ruby/debug#control-flow).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymo87%2Fwordle-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnymo87%2Fwordle-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymo87%2Fwordle-solver/lists"}