Inspiration I got the idea from an assignment that had us create a program in Python whose algorithms mimicked the game mechanics for Wordle.
What it does is that first asks the user how long they wish their guess word to be (the longer the word, the more difficult it can be to guess). The game then lets the player choose a word that is the same length as the guess word. They have some number of attempts to guess the word correctly--and each incorrect guess is tracked such that it helps the player come up with more accurate guesses (i.e. letters not in the word, incorrect positions, etc).
How I built it: I coded the game through Java and utilized Object Oriented Principles that made use of data structures such as arrays, lists, and hash tables to handle the intricate parts of Wordle's game mechanics.
Challenges I ran into: Coming up with a data structure to map the budget of the word frequency (which ended up being a hash table) such that the correct hint is given for incorrect guesses (i.e. duplicate letters in incorrect positions).
Accomplishments that I'm proud of: I was able to implement my own changes beyond the assignment's Python implementation and with a more robust framework (i.e. OOP principles).
What I learned is how crucial data structures are because they are created specifically to be the best tools needed to address certain problems.
What's next for Wordle (Java): a UI system for better visuals and user interaction.
Log in or sign up for Devpost to join the conversation.