Giter Club home page Giter Club logo

wordle-selenium-bot's Introduction

Contributors Language

Issues


Wordle Bot

A simple python bot to solve today's wordle
ยท Report Bug ยท Request Feature

Table of Contents

About The Project

Wordle has been fairly liked and much popular game. Solving wordle feels really really good. I built a bot for the same who will do it for, now watching the bot solve the worlde feels much better than me solving it myself.๐Ÿ˜‚๐Ÿ˜‚ I bot opens the wordle site which is (https://www.nytimes.com/games/wordle/index.html) and solves the wordle by itself.

I have used two strategies to solve a problem :

  1. Randomized Algorithm with some pre info gathering
  2. Freq distrbution of letters in the valid words

Here are the results for the same when we run it on 1000 words: Strategy 1:

Success Percentage :  70.39999999999999
Failure Percentage :  29.599999999999998
Average Attempts :  4.802556818181818

Strategy 2:

Success Percentage :  87.7
Failure Percentage :  12.3
Average Attempts :  4.6419612314709235

I will further keep improving the bot with some addons. A list of commonly used resources that I found helpful are listed in the acknowledgements. I have listed the source of the data in the acknowledegements.

Built With

Getting Started

Getting started with the bot is fairly easy. Make sure you are using an or virtual environment(not compulsory but recommended) for installing all the libraries. Once you have activated your virtual env you can install all the packages with this command below :

pip install -r requirments.txt

Now you can run the bot with:

python wordle.py

To test the bot I have made wordle game which is the wordle_test.py, you can always change it if you want. To test bot you can wordle_test.py :

python wordle_test.py

By default it will run it on 1000 random words, to change the argument you can pass --Nwords in cli and mention the number of words :

python wordle_test.py --Nwords 100

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Acknowledgements

wordle-selenium-bot's People

Contributors

devdattakhoche avatar

Stargazers

 avatar

Watchers

 avatar  avatar

wordle-selenium-bot's Issues

CSS Selector Error

Not sure if the sites code changed but it claims that the selector game-app doesn't exist:

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"game-app"}

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.