Тёмный
No video :(

Wordle in Python - Part 2 

Coding Cassowary
Подписаться 1,5 тыс.
Просмотров 2,3 тыс.
50% 1

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

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@samdavis1270
@samdavis1270 2 года назад
This is the only video I've found that accounts for the double letter instances in the game and explained how you went about accounting for it in the code. Thank you! and great tutorials!
@jishui4630
@jishui4630 2 года назад
These tutorials were really easy and enjoyable to follow along with, so thank you! After completing it, I personalized it a bit to move the alphabet to the bottom and the correct word display on the top to further test what I learned in this series. I would love to see an update to develop the interface including a keyboard-style display of unguessed letters as well as changing colors of unguessed letters based on whether they appear yellow/green in the guessed words. Overall a very well made tutorial for beginners especially explaining the purpose behind what you type!
@codingcassowary6391
@codingcassowary6391 2 года назад
Thank you very much for your comment. You make some very good suggestions! They would definitely make this Python version of Wordle a lot more like the real thing. When I was preparing this video, I thought about adding some of these features, but then decided to go for the simpler version that you can see in the tutorial, because I didn't want the videos to get too long.
@qfn
@qfn 2 года назад
Thank you for this video, it helped me a TON when coding Wordle on my own. :)
@nodroGnotlrahC
@nodroGnotlrahC 2 года назад
Thank you for restoring my faith in Python programmers. Prior to this video I watched 8 other "let's code Wordle" videos and of them the 7 Python programmers all got the letter colouring logic wrong! (The other one (Javascript) got it right, and did the same as you i.e. coded it wrong initially then went back and corrected it.)
@codingcassowary6391
@codingcassowary6391 2 года назад
Hey, thank you for taking the time to also read the video description. Unfortunately, once a video is uploaded to RU-vid, you can only add overlays with links to other videos but nothing like errata or corrections, which is why I had to add the correction in the video description. A nice way of testing the Wordle color coding is given in a video by 3Blue1Brown: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fRed0Xmc2Wg.html. When I went through the examples, I noticed my code got one of the examples wrong and it was the simple "elif".
@rinfobgh
@rinfobgh 2 года назад
Should have considered putting source code in Gits . My first issue was older version of pygame, which resulted in lots of errors till i installed a latest version of it. I feel this is the best wordle implementation in python . BTW can i interact with some one who have successfully implemented and run it. Thanks in advance.
@LimitlesslyUnlimited
@LimitlesslyUnlimited 2 года назад
Just found your channel and subscribed, this was an awesome tutorial! Thank you for putting in the effort! Was so simple and to the point. Also, I do realize this request is out of the current scope but do you think you would please mind covering how you can connect this game to say your website using some sort of api with flask or something similar etc. since the queries involved might be simple? Would really love to learn from it so like a full package when the next time someone visits this tutorial it can serve to guide them to make this sort of simple game from scratch and help them publish it on their website as well.
@Omar_Cubing
@Omar_Cubing 2 года назад
great video but can you please explain this part of code again for me I am a beginner so I don't fully understand why did you write this way I mean why should we compare the length of "GUESSES" to "i" and the same thing in "INPUT" and "j" if i == len(GUESSES) and j < len(INPUT): print(len(GUESSES)) print(i) letter = FONT.render(INPUT[j], False, GREY) surface = letter.get_rect(center = (x + SQ_SIZE // 2, y + SQ_SIZE // 2)) screen.blit(letter, surface)
@codingcassowary6391
@codingcassowary6391 2 года назад
Hey, thank you for your question. Notice that we are looping through each of the squares on the screen and not the different letters in the user input. So throughout the loop we are always asking ourselves: What letter needs to go in the box in row "i" and column "j"? So when it comes to the live input, the "i=len(GUESSES)" part makes sure that we are in the correct row, which is the one after we have inputted all the previous guesses. If you want to, you can try to leave out the this part and see how the computer then enters the current guess into every row. The "j
Далее
Generative art in Python: Basic Tiling
14:41
Просмотров 13 тыс.
Finding strange attractors - Part 2
28:49
Просмотров 1,9 тыс.
How to Build Chatbot with Python & Rasa
2:28:05
Просмотров 49 тыс.
Coding the Enigma machine - Part 4
33:22
Просмотров 3,1 тыс.
Generative art in Python: Nested Squares
17:11
Просмотров 4,4 тыс.
The World's Tallest Pythagoras Cup-Does It Still Drain?
10:05
Finding strange attractors - Part 1
21:17
Просмотров 4,1 тыс.
What does it feel like to invent math?
15:08
Просмотров 4,1 млн
Making Wordle in Python Using Tkinter
27:17
Просмотров 4 тыс.
Automate with Python - Full Course for Beginners
2:42:55
Coding the Enigma machine - Part 1
27:43
Просмотров 21 тыс.