GithubHelp home page GithubHelp logo

luiherch / wordle_solver Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 209 KB

A Python Wordle solver that utilizes information theory for intelligent word prediction

License: Other

Python 100.00%
information-theory python scipy

wordle_solver's Introduction

Wordle Solver using Information Theory

Wordle Solver logo

Chat Chat

Overview

This project is a Wordle solver that leverages principles from information theory to efficiently guess the hidden word in the Wordle game. Built using Python and scipy, this solver aims to enhance the player's Wordle experience by providing the statistically best words based on the player's guesses. The solver utilizes a non-comprehensive Spanish dictionary to generate word suggestions.

Special Thanks to David Azorin for designing the logo!

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/wordle-solver.git
  2. Navigate to the project directory:

    cd wordle-solver
  3. Install Poetry (if not already installed):

    curl -sSL https://install.python-poetry.org | python3 -
  4. Install the project dependencies using Poetry:

    poetry install
  5. Run the solver:

    poetry run python main.py

Usage

  1. Launch the program running main.py

  2. Enter the words you have tried using the virtual keyboard

  3. Click on the screen buttons to select which pattern you obtained in the wordle game so far

  4. Click on compute entropies to compute the best words based on the words and patterns entered

  5. Click on show entropies to see the best words to guess based on the entropy score of every word

  6. Press reset button to try new words and patterns

To-Do List

  • Integrate physical keyboard
  • Add multiprocessing to speed up initial computation
  • Improve light mode appearance
  • Write comprehensive documentation
  • Build web version
  • Add file dialog to change the word dictionary to allow different languages
  • Improve appearance of light mode

License

This project is licensed under the CC BY-NC 4.0 License. See the LICENSE file for more information.

Contributing

Contributions are welcome! If you'd like to enhance the Wordle solver or fix any issues, please follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature/fix:

    git checkout -b feature/your-feature
  3. The commits adhere to the Conventional Commits convention. Make the necessary changes and commit them:

    git commit -m 'feat: add your feature description'
  4. Push your changes to the forked repository:

    git push origin feature/your-feature
  5. Open a pull request to the main repository's main branch.

wordle_solver's People

Contributors

luiherch avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ivanrg99

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.