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!
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!
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.
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.)
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".
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.
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.
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)
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