Literally solves Squaredle (https://squaredle.app)
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.
- Run
setup.py
. - 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.
- Use
Backtracking, bitmasking, hashset, that's all!
It's amazing how this can be wrapped in a Telegram bot. You have two options:
-
Create
env.py
and putTOKEN
andCHATS
as the bot token and the comma-separated chat IDs, respectively. For example:TOKEN = 'abcDEF123789' CHATS = '123456,-987654,42069'
-
Use GitHub repository secrets and put
TOKEN
andCHATS
accordingly without the quotation marks. See the image below.
asdf