A console implementation of the classic Wordle word-guessing game. A five-letter secret word is picked at random from a word list, then the player gets six rounds to guess it; each guess is scored by uppercasing correctly-placed letters, lowercasing letters that exist elsewhere in the word, and dashing out letters that don't appear at all.
src/main/java/ConsoleWordle.java— entry point handling file loading, the guess loop, and per-round feedbacksrc/main/resources/Examples.pdf— reference examples of game output
- JDK 17
- Gradle (the bundled
gradlewwrapper handles this)
./gradlew build
./gradlew runOn Windows:
.\gradlew.bat build
.\gradlew.bat runIn IntelliJ: open the folder, let Gradle sync, then run the main method in ConsoleWordle.
Run the program with a words.txt file available in the working directory (formatted with a leading integer count followed by one word per line). At each round prompt, type a five-letter guess and press enter; the program prints the scored result and either congratulates you on a win or reveals that the round count has been exhausted.
Originally a coursework assignment; pulled out as a standalone repo.