Тёмный
No video :(

Wordle Champion - Coding Perfect Wordle Ai 

Tech Tribe
Подписаться 3,3 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Make sure to like the video and subscribe! Also, if you have any algorithm improvement suggestions, leave them here :)
@fghhbbbbb
@fghhbbbbb 2 года назад
make a vid on how to use it
@TechTribeCommunity
@TechTribeCommunity 2 года назад
@@fghhbbbbb There is an explanation on the Github (github.com/techtribeyt/Wordle) how to use it. You have to clone the repository (docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) and in play_wordle.py call the run_program function. Once the website loads, you press the "escape" key to start the program.
@fghhbbbbb
@fghhbbbbb 2 года назад
@@TechTribeCommunity thanks
@sammies3097
@sammies3097 2 года назад
@@fghhbbbbb does the algorithm actually run when you press escape? it doesn't for me
@ALIHAID3R
@ALIHAID3R Год назад
any way to do this on a 3rd party application where it reads whats there and types it?
@KeyserTheRedBeard
@KeyserTheRedBeard 2 года назад
wonderful video Tech Tribe. I killed the thumbs up on your video. Keep up the amazing work.
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Thank you ☺️
@KeyserTheRedBeard
@KeyserTheRedBeard 2 года назад
@@TechTribeCommunity no problem at all. always happy to support my fellow content creators. i am looking forward to improving on my own current video format i have uploaded and, in the future, trying to create content as good as yours in the long term.
@rohithk04
@rohithk04 2 года назад
Now do this with a RNN!
@TechTribeCommunity
@TechTribeCommunity 2 года назад
I haven't explored RNNs much, but will certainly look into them for a future video! Thank you for watching, as always!
@Sakrosankt-Bierstube
@Sakrosankt-Bierstube 2 года назад
3Blue1Brown should join the competition.. his bot averaged around 3
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Yes! I saw his video- very well done. Unfortunately, the competition that I participated in has a much longer answer list than classic wordle, so getting under 4 is impossible (first place got slightly above 4 average). I bet 3B1B would’ve done really well tho!
@BahramKheradmand
@BahramKheradmand 2 года назад
@@TechTribeCommunity I have so far used no code, no dictionary, and no looking at the answer list, and stand at a 3.69 average, which with some luck and some patience could have been 3.6-ish. 100% win rate so far.
@TechTribeCommunity
@TechTribeCommunity 2 года назад
@@BahramKheradmand Impressive!
@BlazingIce
@BlazingIce 2 года назад
Could you explain how it reads the screen and goes to the next round of words? If I was trying to use this for a different website would it be easy?
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Hello! Yes, so the program does not actually look at the screen as a human would. Instead, I look at the page's HTML using a Python library called Selenium. For example, green letters on Wordle have a class "correct", yellow letters have a class "present" and "absent" for gray. The classes are a bit different in word master - you just have to look through the HTML to figure out what you are looking for. Then, I let my code get the next guess. Once I do, I use the keyboard library to type it in. Selenium is also used for pressing the next button if needed. You are welcome to look through my code (link in description). Here is a nice Selenium tutorial: selenium-python.readthedocs.io/. Also, I go into more detail about Selenium in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QtkxBZwmvYM.html
@jhnart0647
@jhnart0647 2 года назад
Hi there, when i run the program, i get an error message saying that "ModuleNotFoundError: No module named 'words'". I was wondering if you could help me fix this problem
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Hello! Make sure you have the words.py file in the same directory
@thussprachscaramouchestra6593
@thussprachscaramouchestra6593 2 года назад
I don't get the usage of the possible guess list. If we don't know the sucess of an answer before it is submitted, then why not just use the valid guess list and narrow that down?
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Hello! I think that would also be valid. My program is based on the principle: "guess the word that would give you the most information in the worst case." Sometimes this "most-informative" word is in the valid answer list. Sometimes it is in the valid guess list, but not in the valid answer list. I have seen successful algorithms that only look through the valid answer list, and even some that look only through the narrowed down valid answer list before making the guess. That's definitely faster, but it might not give the program as much new information for narrowing down the list as guessing a word outside of the valid answer list. Hope that makes sense!
@thussprachscaramouchestra6593
@thussprachscaramouchestra6593 2 года назад
@@TechTribeCommunity Ah, that's clever. So you will use a word from that list to get you to the answer quicker if a real word won't. I still don't quite understand how you do it yet, but I'll get there. Thanks.
@TechTribeCommunity
@TechTribeCommunity 2 года назад
@@thussprachscaramouchestra6593 Exactly! I basically ask "Which word can give me the best guarantee of narrowing down the answer list?" If that word just happens to be in the answer list, then great! We get an additional chance of getting the correct word on the next turn. But if not, we know we are still making a guess that gives us a lot of new information.
@splasxh1027
@splasxh1027 2 года назад
how do i download selenium, everytime i try to run the program i get an error saying i dont have selenium?
@TechTribeCommunity
@TechTribeCommunity 2 года назад
In your terminal, try running “pip install selenium”
@splasxh1027
@splasxh1027 2 года назад
@@TechTribeCommunity Thank you! I just got pip installed and selenium and all the other extensions. But, I'm using visual studio code and whenever I run the program, I'm not getting any errors but the website won't open. What can I do?
@TechTribeCommunity
@TechTribeCommunity 2 года назад
@@splasxh1027 glad the code runs! I’m not sure how this works in Visual Studio, but you can always try using Anaconda’s Spyder IDE, which is what I used in this video!
@therealobvert7237
@therealobvert7237 2 года назад
how do you install selenium on spyder
@TechTribeCommunity
@TechTribeCommunity 2 года назад
Hello! Please run “pip install selenium” either in the Spyder console or just in your anaconda terminal when you’re in the virtual environment.
@CLHoofie
@CLHoofie 2 года назад
Could to explaine how to downlaoad and use this bot
@TechTribeCommunity
@TechTribeCommunity 2 года назад
There is an explanation on the Github github.com/techtribeyt/Wordle how to use it. You have to clone the repository docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository and in play_wordle.py call the run_program function. Once the website loads, you press the "escape" key to start the program.
Далее
The best Wordle strategy - according to science
12:33
Просмотров 894 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 55 млн
СМАЗАЛ ДВЕРЬ
00:31
Просмотров 161 тыс.
Coding a Fluid Simulation with my Last 2 Brain Cells
4:24
Using AI to Create the Perfect Keyboard
12:05
Просмотров 1,4 млн
Tmux has forever changed the way I write code.
13:30
Просмотров 969 тыс.
Solving Wordle using information theory
30:38
Просмотров 10 млн
Perfect WORDLE algorithm (and how I found it)
18:03
Просмотров 12 тыс.
AI Plays Wordle
19:22
Просмотров 1,3 млн
AI Learns to Play Snake - Q Learning Explanation
8:53
Просмотров 4,5 тыс.
Wife habit 😂 #shorts
00:16
Просмотров 55 млн