Wordle Champion - Coding Perfect Wordle Ai

  Рет қаралды 11,018

Tech Tribe

Tech Tribe

Күн бұрын

Пікірлер: 31
@TechTribeCommunity
@TechTribeCommunity 3 жыл бұрын
Make sure to like the video and subscribe! Also, if you have any algorithm improvement suggestions, leave them here :)
@fghhbbbbb
@fghhbbbbb 3 жыл бұрын
make a vid on how to use it
@TechTribeCommunity
@TechTribeCommunity 3 жыл бұрын
@@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 3 жыл бұрын
@@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?
@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: kzbin.info/www/bejne/h6XOqXWQrNKpj68
@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
@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.
@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.
@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!
@rohithk04
@rohithk04 3 жыл бұрын
Now do this with a RNN!
@TechTribeCommunity
@TechTribeCommunity 3 жыл бұрын
I haven't explored RNNs much, but will certainly look into them for a future video! Thank you for watching, as always!
Solving Wordle using information theory
30:38
3Blue1Brown
Рет қаралды 10 МЛН
Coding a Fluid Simulation with my Last 2 Brain Cells
4:24
Gonkee
Рет қаралды 432 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
Using AI to Create the Perfect Keyboard
12:05
adumb
Рет қаралды 1,4 МЛН
When AI Plays Wordle..
21:49
Why Suda
Рет қаралды 902 М.
Oh, wait, actually the best Wordle opener is not “crane”…
10:53
The best Wordle strategy - according to science
12:33
Andrew Steele
Рет қаралды 899 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
The Wordle Bot That Roast You
5:46
Voidzy
Рет қаралды 335
Perfect WORDLE algorithm (and how I found it)
18:03
Games Computers Play
Рет қаралды 13 М.
Is a Minecraft AI Smarter than a Human?
9:45
Woocie
Рет қаралды 8 М.
Карина Кросс #shorts
0:16
Dolly and Friends Shorts Cartoons
Рет қаралды 361 М.
(✋❌)kageihina VS siajiwoo VS meosimmyyt VS oxzung#tiktok #shorts
0:12
НЕ ДАМ ЕЁ В ОБИДУ😡 #shorts
0:24
Паша Осадчий
Рет қаралды 1,6 МЛН
Абзал неге келді? 4.10.22
3:53
QosLike fan club
Рет қаралды 31 М.
#trending #foryou #challenge #fyp #viral #short #tiktok #vs
0:15
Misiсatсh
Рет қаралды 2,4 МЛН