/unsquaredle

Literally solves Squardle (https://squaredle.app)

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

unsquaredle

Literally solves Squaredle (https://squaredle.app)

Disclaimer

Only Windows and Linux are supported as of now. Windows because I use it, Linux because GitHub Actions uses it (but not my Ubuntu terminal somehow). You can't fight me.

Usage

  1. Run setup.py.
  2. To solve the ongoing Squaredle, run main.py as is since the whole process is automated.
    • Use python main.py <mode> depending on what Squaredle mode you'd like to play.
    • If the mode is not given, it will default to the normal daily Squaredle.

How it works

Backtracking, bitmasking, hashset, that's all!

Telebot integration

It's amazing how this can be wrapped in a Telegram bot. You have two options:

  1. Create env.py and put TOKEN and CHATS as the bot token and the comma-separated chat IDs, respectively. For example:

    TOKEN = 'abcDEF123789'
    CHATS = '123456,-987654,42069'
  2. Use GitHub repository secrets and put TOKEN and CHATS accordingly without the quotation marks. See the image below.

secret

Contributing

asdf