A clone of Wordle written in Java. Mainly written so I can test Makefile.
The game Wordle has recently become popular, so I’ve tried my hand at making a clone of it. I also wrote it because I think Makefiles are cool.
This game plays the same as regular Wordle. You’re trying to guess a word, and you have a limited chances. Enter your guess, and the system will print out your guess. For each letter in the word, if it is the correct letter in the correct position, it will by highlighted green. If it is a correct letter in an incorrect position, it will be highlighted yellow. If the letter is not in the word, it will not be highlighted.
What makes this different from regular Wordle, however, is that you get to pick how long the word is. The number of chances you get is modified accordingly. You can select any word length from 2 to 12.
This Wordle clone works for Windows, Mac and Linux. I cannot guarantee (and in fact, I highly doubt) that it will work on mobile devices.
All dependencies are required unless stated otherwise.
git (optional)make (if using Mac or Linux)git clone https://github.com/Akhil841/wordle-clonegit) or by downloading this repository as a ZIP file (click on the green Code button next to the “About” header) and unzipping it.cd-ing into the directory where this repository is located on your computer and enteringmake execWordle.\Wordle\Wordle.sln in Visual Studio and compile it.make compiles the game if the source is updated, but on Windows, you’re running a compiled, release version of the game (that will not update unless you reinstall the repository). The difference is barely noticeable, so don’t worry too much about it.
make functionality in Windows, you can install Chocolatey and runchoco install make.dictionary.txt and replace it with all the words you want. Each word should be separated by a newline.
Wordle.java (or Wordle.cs on Windows) and edit the variable LIFE_MULTIPLIER (default 1.5) or, if you want, you can edit MAX_LIVES to force the number of lives to be a specific number, regardless of the word length you pick.JAR for whatever reason, the Makefile has recipes for WordleTools.class, Wordle.class, and Wordle.jar. If you’re on Windows, just open the Makefile with a text editor and you’ll see the commands used to make each of these files.