Solves the Regexle game (https://regexle.com) in no time
- Run
setup.py
. - To solve the ongoing Regexle(s), run
main.py
as is since the whole process is automated.- Use
python main.py <size>
depending on what Squaredle mode you'd like to play. - If the mode is not given, it will default to the normal daily Regexle (
size=3
).
- Use
In a nutshell, backtracking with pruning.
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