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