Тёмный

Simple Python Wordle Game Tutorial for Beginners 

TokyoEdtech
Подписаться 47 тыс.
Просмотров 7 тыс.
50% 1

In this video I'll show you how to create a simple terminal version of the popular word guessing game, Wordle, in Python. Altogether it is about 30 lines of code. Enjoy!
Download the File Here: github.com/wynand1004/Project...
WORDLE Image by Tatsuo Yamashita: www.flickr.com/photos/yto/519...
ANSI Color Codes: www.lihaoyi.com/post/Buildyou...
NEED HELP?
🆘 Watch this first and then let me know in the comments below: • Help Me Help You
LINKS
🎮 Discord: / discord
🗄️ GITHUB: github.com/wynand1004
💬 Follow me on Twitter: / tokyoedtech
📜 Subscribe to my Newsletter: eepurl.com/dKgM8k
📝 Check out my Blog: christianthompson.com
⬇️ Download Geany Editor: www.geany.org
LEARN MORE PYTHON
➡️Space Invaders: • Python Game Programmin...
➡️Snake Game: • Python Game Programmin...
➡️Pong: • Python Game Programmin...
➡️Space War: • Python Game Programmin...
➡️Intro to Python (for Java Coders): • Intro to Python for Ja...
➡️Space Arena - The Ultimate Python Turtle Graphics Game Tutorial: • Ultimate Python Turtle...
LEARN MORE JAVA
➡️Basic Java for Beginners: • Basic Java 1&2: Commen...
➡️Intro to AP Computer Science A: • AP Computer Science Un...
#Python #beginner #tutorial

Наука

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

 

6 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@okamichamploo
@okamichamploo Год назад
Great vid. Coming from C# with this being my first time looking at anything Python. Really easy to follow and understand explanations.
@TokyoEdTech
@TokyoEdTech Год назад
Thanks - I appreciate that! Keep on codin'!
@TokyoEdTech
@TokyoEdTech Год назад
I might do this in Java as well since I've been teaching it to my students.
@solijonovasadbek4552
@solijonovasadbek4552 Год назад
Best Teacher!
@TokyoEdTech
@TokyoEdTech Год назад
Thanks - I try! Keep on codin!
@metaphyzikal1
@metaphyzikal1 Год назад
A couple of things for WINDOWS python users. Need: "from sys import exit" so the exit works, and yes, I tried os.system("cls"), but spyder just kept clearing the screen first, and not allowing me to enter any guesses (although it was fine on IDLE). So I deleted ("cls") and it worked ok. I guess it will work in some other IDEs fine too.
@TokyoEdTech
@TokyoEdTech Год назад
Thanks for the info - much appreciated!
@777Raim
@777Raim Год назад
Hello @TokyoEdtech! It will be very useful to show turtle and pymunk integration if it's technically possible. On the internet I didn't find an answer. Big Thanks!
@TokyoEdTech
@TokyoEdTech Год назад
That's an interesting idea - I haven't used pymunk before. I wonder if it is possible too....
@bblevins
@bblevins Год назад
Fun video! I even watched the Java version. Could you program it in Commodore Basic?
@TokyoEdTech
@TokyoEdTech Год назад
Hmmm- that is an interesting challenge! I tried playing around with it but got too frustrated with the keyboard differences - why don't you give it a go??
@yibrahim7
@yibrahim7 Год назад
Great job man.. I love how you make so clear and easy to follow and understand. please keep up the great work. just one question: how can we fix the issue of repeated correct letters? for example in the "SHAKE" if i wrote the "S" twice in my guess"SHASE" it would label it as green for the 1st one and yellow for the 2nd letter. thanks again man.
@TokyoEdTech
@TokyoEdTech Год назад
Thanks - glad you liked it! To deal with repeated letters, you need to keep track of which letters are correct based on position. So, you could use an array set to the length of the string. Note, I'm doing this from memory, so there may be errors, but this is the gist. boolean[] correct = new boolean(word.length()); When you check for correctness you'd need to do: correct[index] = true; Then, when printing, you'd need to do if(correct[index]) { System.out.print(word.substring(index, index+1)); } Hopefully that gives you enough to go on. Good luck and keep on codin'!
@yibrahim7
@yibrahim7 Год назад
@@TokyoEdTech Thanks for replying man, you're a legend. I'll keep on coding 😉
@TokyoEdTech
@TokyoEdTech Год назад
@@yibrahim7 You're welcome - good plan!
@SkyFly19853
@SkyFly19853 Год назад
Hmmm... Interesting... Btw, how is Halloween going in Japan?... 🤔😏
@TokyoEdTech
@TokyoEdTech Год назад
Not much going on yet - next weekend will probably be crazy!
@SkyFly19853
@SkyFly19853 Год назад
@@TokyoEdTech I wish I could be there and have fun! Lots of fun!
@aryabhishekverma
@aryabhishekverma Год назад
hey, how about you make a tutorial on "Wordle using Tkinter python"?
@TokyoEdTech
@TokyoEdTech Год назад
Hiya - it's a great idea, but I doubt I'll have time anytime soon.
@Neoloxal
@Neoloxal Год назад
the colors dont work tho they just say a code the letter then more code it makes this basically ipossable to play
@TokyoEdTech
@TokyoEdTech Год назад
Where are you coding it? On your computer or online?
@Neoloxal
@Neoloxal Год назад
@@TokyoEdTech in vs code (windows)
@TokyoEdTech
@TokyoEdTech Год назад
@@Neoloxal Hmmm. I will have to test it on Windows. I don't use Windows so I don't usually bother. Sorry about that.
@TokyoEdTech
@TokyoEdTech Год назад
@@Neoloxal For Windows, try the color codes found here: ss64.com/nt/syntax-ansi.html
Далее
How to Make A Deck of Cards using Python OOP
47:43
Просмотров 11 тыс.
Simple Java Wordle Game Tutorial for Beginners
32:03
Просмотров 10 тыс.
Lasagna Soup @Lionfield
00:35
Просмотров 6 млн
Happy 4th of July 😂
00:12
Просмотров 19 млн
If __name__ == "__main__" for Python Developers
8:47
Просмотров 384 тыс.
Wordle in 50 lines of Python
11:27
Просмотров 8 тыс.
Python Game Tutorial: Minesweeper Basic Game Functions
57:54
Pygame in 90 Minutes - For Beginners
1:35:22
Просмотров 1 млн
Wordle in Python - Part 1
21:13
Просмотров 4,7 тыс.
Simple Hangman Game with ASCII Graphics
28:55
Просмотров 5 тыс.
The best Wordle strategy - according to science
12:33
Просмотров 891 тыс.
Making Wordle in Python Using Tkinter
27:17
Просмотров 4 тыс.
Perfect WORDLE algorithm (and how I found it)
18:03
Просмотров 12 тыс.
Сравнили apple и xiaomi!
0:21
Просмотров 27 тыс.