GithubHelp home page GithubHelp logo

lachlanstephen / wordle-helper-c Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 52 KB

Sick of losing a wordle competition, I decided to code up this helper function to help me guess the best possible word.

Makefile 14.21% C 85.79%
42adelaide c file-parsing wordle-helper wordle-solver wordle-solver-c makefile

wordle-helper-c's Introduction

Wordle Helper - C

This is a small C application I built to assist in making the most effective guesses in Wordle. This project was inspired by the sheer domination I was facing trying to compete with someone in the daily Wordle.

To run the Wordle helper:

  1. Run the command 'make re' (This creates the executable, compiling all necessary files)
  2. Run the executable ('./wordle-solver'), using the required arguments
  3. Repeat step 2, updating the arguments as you solve the Wordle further

For the executable to run, it requires 5 arguments0.

The arguments1 are as follows:

  1. Executable name ('./wordle-solver')
  2. Dictionary2 of words to use ('./dicts/answers\_wordle.txt')
  3. Current correct letters3 ('..a.e')
  4. Letters contained in answer, but not in correct spot ('t')
  5. Letters not contained in answer ('sl')

Example: ./wordle-solver ./dicts/answers\_wordle.txt '..a.e' 't' 'sl'

The above example would be the command run after the guess 'slate' was input into Wordle, when the answer is 'trace'

Notes:

  1. Please ensure all arguments are in lowercase, I haven't done any handling of uppercase letters
  2. The number out the front of the argument denotes the argument number in the program
  3. There are two dictionaries I provide to choose from pulled from NYTimes lists of valid answers and guesses. With a recent change to how they pick the word of the day, occassionally the answer is chosen from the valid guesses list. An example of this is 'Kazoo' which was the solution on the 19 June 2023. I always start with the answers dictionary, and if it doesn't show up, I move to the guesses dictionary.
  4. The current correct letters argument must have 5 characters! In the event you don't know the letter for that spot, you need to use the '.' character as a placeholder

As always, if you see any issues with my code or think I could improve it (whether it be in regards to time or space complexity, or anything at all), please let me know! (Probably by forking my repo and putting your own solution up with comments for me to see).

wordle-helper-c's People

Contributors

lachlanstephen avatar

Stargazers

 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.