Тёмный
No video :(

How to make Wordle in python [EASY!] 

Learn to Code GCSE
Подписаться 2 тыс.
Просмотров 15 тыс.
50% 1

Get the code here: github.com/lea...
Digital Voyage by Twin Musicom is licensed under a Creative Commons Attribution license (creativecommon...)
Artist: www.twinmusicom...
-Tags:
Computer programming
Python programming tutorial
Python programming course
Online computer programming courses
Programming for kids
Programming games for kids
Programming classes for kids

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

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@hypa2122
@hypa2122 2 года назад
Thank you for this, it has been really helpful for a school project
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
You are welcome, glad it has helped!
@artemgevorgyan4402
@artemgevorgyan4402 2 года назад
OMG I love this channel, keep it up everything is so helpful
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Thanks so much! Will do!
@benllewellynsmith4072
@benllewellynsmith4072 2 года назад
Great job 👏😊
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Thanks!
@colekaplan895
@colekaplan895 2 года назад
Great tutorial! Can you do a video of how to make a game like 'poeltl' it's a different concept of wordle but with NBA players. Just a suggestion
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
I haven't seen that. I'll check it out and see what I can do!
@colekaplan895
@colekaplan895 2 года назад
@@LearntoCodeGCSE Thank you! Keep me posted!!
@azurish7820
@azurish7820 2 года назад
Ong im tryna make a college version
@DrewSki12115
@DrewSki12115 2 года назад
@@azurish7820 I am starting a project for a capstone similar to Poetl as well. Did you by chance find anything on how its created?
@yernarsmagulov4774
@yernarsmagulov4774 2 года назад
So I’m trying to run your code on a Mac but when I hit delete key, it doesn’t remove any letters from the guess string. Any idea why this is happening? I feel like it has something to do with the guess = guess[:-1] line
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Hi, that is very weird. Even weirder that I'm also running the code on my Mac in the video. It probably has something to do with the event loop listening for keys. Everything indented equally?
@mikelucent9437
@mikelucent9437 2 года назад
I had a similar issue. Check the code below for my fix. I had to change the order of the if statement to check for backspace first. Mac as well. if event.type == pygame.KEYDOWN and event.key == pygame.K_BACKSPACE or len(guess) > 5: guess = guess[:-1] if event.type == pygame.KEYDOWN and event.key != pygame.K_BACKSPACE: guess += event.unicode.upper().strip()
@justinshimonkarborani4581
@justinshimonkarborani4581 2 года назад
I'm having trouble with the font and it saying font not initialized
@hypa2122
@hypa2122 2 года назад
I would just like to check, when I press backspace or enter it adds an empty character to the guess and I can't figure out how to stop this. It is stopping the delete from working and if you press enter enough, the word goes through even though it is just blank
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Another weird issue! Someone else had something similar. Could you post your code and I can take a look?
@mikelucent9437
@mikelucent9437 2 года назад
This is my code for that: I check if the key is not backspace before adding to the guess. I also add a strip() when adding the unicode the guess list just in case to remove any blanks. Not sure if it's needed but did it anyways. if event.type == pygame.KEYDOWN and event.key != pygame.K_BACKSPACE: guess += event.unicode.upper().strip()
@droopybeagle
@droopybeagle 2 года назад
Thank you for your video its really helpful to get an understanding! Instead of using a .txt file for the wordlist, i'm thinking of modifying the code and having a list of words saved in a google sheets that i can then import into a python list using an API. Do you have any advice for how best to modify the main function to take this into account? I'm assuming to remove the file variable within the main function and have the wordlist variable refer to the imported words in a python list? I'm overcomplicating things but trying to find a way to take this idea and write it differently rather than copying. Thanks for your help, Much appreciated! :)
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
That sounds good! One thing I'd suggest doing is looking how the sheets can be saved. If they can be saved as a .CSV file type (comma separated value) you could import the whole .CSV file, and then use the .split(",") function to split the whole thing by the commas. Then you just use random to select a random work from that list. Something like: Import random File = open("myfile.csv","r") Contents = file.read() Splitcontents = contents.split(",") Chosenword= Splitcontents [random.randint(0, Len(Splitcontents)-1)] Something like that. Tbh im not 100 percent certain how python handles .CSV files but it will be something like this, you might need a bit of a Google!
@droopybeagle
@droopybeagle 2 года назад
@@LearntoCodeGCSE My plan to to my own pygame version is no longer possible. I am limited to using the CLI do you have any tips for how i could try this rather than using pygame? Thanks! :)
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Hi, maybe a modified version of this hangman code would work: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mvM3JrTLL0Y.html
@biagioemanuele4190
@biagioemanuele4190 2 года назад
For some reason, once I start the wordle I can’t type to enter my answer. I have read your code line for line and can’t find the reason , do you know why ? Thanks
@biagioemanuele4190
@biagioemanuele4190 2 года назад
@Learn to Code GCSE could u show me the bit of code that will allow to to do that thanks :)
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Hi, there was another person in the comments who had the same issue. I'm not totally sure what caused it but if you check the replies in the comments you'll see their solution. Hope that helps!
@biagioemanuele4190
@biagioemanuele4190 2 года назад
Ok thank you
@biagioemanuele4190
@biagioemanuele4190 2 года назад
I think it worked
@Haggi5
@Haggi5 2 года назад
what you use to code
@LearntoCodeGCSE
@LearntoCodeGCSE 2 года назад
Python IDE 👍
@dylanmoore9047
@dylanmoore9047 2 года назад
I see you trend hopping to get more views smh, very cheeky
Далее
How to make Nerdle (Maths Wordle)! [Super Easy!]
37:29
Просмотров 1,1 тыс.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
Wife habit 😂 #shorts
00:16
Просмотров 49 млн
I Built a WATERPARK In My House!
26:28
Просмотров 11 млн
Solving Wordle using information theory
30:38
Просмотров 10 млн
Code Tic Tac Toe in Python
33:28
Просмотров 8 тыс.
👩‍💻 Python for Beginners Tutorial
1:03:21
Просмотров 3,2 млн
Text-Based Wordle in Python under 15 Minutes!
21:03
Просмотров 15 тыс.
Pygame in 90 Minutes - For Beginners
1:35:22
Просмотров 1 млн
The World's Tallest Pythagoras Cup-Does It Still Drain?
10:05
Program Wordle in Python!
47:10
Просмотров 8 тыс.
The SAT Question Everyone Got Wrong
18:25
Просмотров 12 млн
Rotation without rotating.
16:52
Просмотров 1 млн
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11