Quick (one-evening) implementation of Wordle for 5-digit primes in Python, for command-line use.
- Has a daily version (
--daily
flag) and an ad hoc version (default) - Has the option to let you only input prime numbers instead of any 5-digit natural numbers (
--only-primes
flag) - Nonvisual mode for playing without visual cues / with a screenreader (
--nonvisual
flag) - Generates alt text / image descriptions if you're going to share to Twitter
- Pretty ANSI colours
Super easy. Read the file with the primes, read the code to see how I'm generating the seed for the daily version, use that and the Python random
module to figure out the target. Et voilà!
- The original Wordle by Josh Wardle (the thing that started it all)
- Common Lisp command-line Wordle by Curtis Mackie (inspiration to use square brackets for each digit in visual mode)
- My friend Ellen for the precursor to the schema used for nonvisual mode