Giter VIP home page Giter VIP logo

wordle-solver's Introduction

wordle-solver

A small command-line aid to help your latest Wordle addiction.

Instructions

You'll need Node.js to run this, not super sure what version... I'm on v16.6.2 which is probably way higher than it needs to be.

  1. Clone or download the repository.
  2. Run npm install in the project root if you have the instinctual urge to do so (there are no dependencies...).
  3. Open solver.js and find the config section:
/***** Letter Guessing (FILL OUT THIS SECTION AS YOU GO) *****/
  1. Make a guess or two on the site.
  2. Update the configuration with your guesses, here's an example:
/***** Letter Guessing (FILL OUT THIS SECTION AS YOU GO) *****/
const CONFIG_ALL_LETTERS = "abcdefghijklmnopqrstuvwxyz";

// 1. Which letters were incorrect?
const CONFIG_INVALID_LETTERS = "egimnoptuch";

// 2. Which letters did you guess that were in the word but not in the correct spot?
const CONFIG_WRONG_SPOT_LETTERS = [
    "",
    "a",
    "rs",
    "",
    "",
]

// 3. Which letters did you guess in the correct spots?
const CONFIG_GUESSED_SPOT_LETTERS = [
    "", 
    "r", 
    "a", 
    "s", 
    "",
];
  1. Run the solver using either npm start or node solver.js.
  2. The solver will give you a list of possible words.
  3. Update your guesses and rerun the solver.

Optional

If you, like me, are too lazy to manually input your guesses each time, I sure do have a terribly hacky solution for you. This is purely optional.

  1. If you are playing on Wordle Unlimited, open the browser-unlimited.js file.
  2. If you are playing on the original Wordle, open the browser-original.js file.
  3. Copy paste the file's code into your browser's developer console and hit enter.
  4. Open solver.js and copy-paste the contents into the config section, replacing all of the CONFIG_* variables.

TODOs

  • Make a nice-looking web page instead of a gross command-line program.
  • Make a chrome extension that can help you on the actual Wordle pages.

Credits

Disclaimers

  • Yes, I know I'm ruining the fun.
  • Yes, I know I'm a bad person.
  • Yes, I still can sleep very well at night.

wordle-solver's People

Contributors

knazir avatar

Watchers

 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.