Quick and dirty Wordle clones.
Credit for the game's name, gameplay logic, and visual design belongs to Josh Wardle. The programs here were merely fun exercises for me, and may be useful to others.
Except where noted below, everything here was written by myself from scratch, to replicate the gameplay logic as I understood it from playing the game.
basic/
wordle-basic.py
– My initial implementation, including hard mode support, in 39 lines of Python.- The word lists in the code are blank and must be manually filled in however you want, or taken from the upstream game's code.
- Optional arguments:
hard
for hard mode
more-features/
wordle-bw.py
– A more featureful implementation, including downloading and analyzing upstream Wordle's word lists.- Optional arguments:
hard
for hard modefetch
to download Wordle's valid answers and valid guesses word listsstats
performs some very rudimentary analysis on words in valid answers list
- Optional arguments:
wordle-color.py
– Minor variation onwordle-bw.py
, adding support for all 4 of upstream Wordle's color schemes.- A couple of parameters must be edited in the code to switch between the color schemes (dark mode, high contrast mode).
- The idea for this came from here, but I quickly realized I wanted to make a full-fledged replica instead.
decode-solution.py
– A replication in Python of the logic Wordle uses to determine the daily game number and solution.- This is only for reference. The program doesn't do anything useful on its own.
- The logic here was reproduced by inspecting upstream Wordle's JavaScript code.