Тёмный

Wordle in 50 lines of Python 

James Abela
Подписаться 1,1 тыс.
Просмотров 8 тыс.
50% 1

In just 50 lines you can make your own version of Wordle! If you enjoyed this, let me know in the comments if you'd like a solver or something else written in Python or Scratch!
0:00 Intro
1:12 Draw the square
3:19 Guess Input (Prompt)
4:45 Checking the guess
7:35 Main loop
10:30 Possible Extras
The code is available here: gist.github.com/jamesabela/d1...
The editor used for this is: codewith.mu/
(Works on Windows, Linux, Mac OS & Raspberry Pis)
Simpler repl.it version:
replit.com/@KkabirBHALLA/Word...
(Thanks to my student Kkabir)
Very nice CLI version which scrapes a wordlist:
replit.com/@DeclanLoo/WordleCLI
(Thanks to my student Declan)
The word list is here:
word_list = ['which', 'their', 'would', 'there', 'could', 'other', 'about', 'great', 'these', 'after', 'first', 'never', 'where', 'those', 'shall', 'being', 'might', 'every', 'think', 'under', 'found', 'still', 'while', 'again', 'place', 'young', 'years', 'three', 'right', 'house', 'whole', 'world', 'thing', 'night', 'going', 'heard', 'heart', 'among', 'asked', 'small', 'woman', 'whose', 'quite', 'words', 'given', 'taken', 'hands', 'until', 'since', 'light']

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

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@JamesAbela
@JamesAbela 2 года назад
If you don't want to make a Wordle Game, but solve it then please see this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lYc7gnNmPcA.html Include a helper and the wordlist of the day if you are desperate!
@roykin0929
@roykin0929 2 года назад
Just what i was looking for!
@JamesAbela
@JamesAbela 2 года назад
Glad you found it useful.
@themanndolorian
@themanndolorian 2 года назад
cool
@themanndolorian
@themanndolorian 2 года назад
cool
Далее
Text-Based Wordle in Python under 15 Minutes!
21:03
Просмотров 15 тыс.
New model rc bird unboxing and testing
00:10
Просмотров 6 млн
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 796 тыс.
How to implement KNN from scratch with Python
9:24
Просмотров 81 тыс.
Build a Wordle clone using HTML, CSS & Javascript!
43:40
The Algorithm Behind Spell Checkers
13:02
Просмотров 407 тыс.
Wordle in Python - Part 1
21:13
Просмотров 4,7 тыс.
Don't ever write Python code like this
8:39
Просмотров 420 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 386 тыс.
How I use Python as a Data Analyst
13:56
Просмотров 353 тыс.