Inspiration

We all used to play Wordle when it was popular so we wanted to create a similar game that is relevant to our course work and could help us study for our CS classes.

What it does

This is a game where the user has 6 chances to guess a 5-letter word. There is a grid and every row represents an attempt by the user to guess the word. A green letter box means the letter is in the correct position against the word. A yellow box means that the letter is in the word but not in the correct position. A grey colored box means the letter is not in the word. If the user guesses the word before 6 attempts, they will be notified that they won the game. If not, the game will be over. There is also an instructions box that informs the user how to play the game.

How we built it

We built this application using Java and JavaFX.

Challenges we ran into

A challenge we faced is formatting the grid and elements in the application since we were all relatively new to JavaFX. Another main challenge was allowing the user to type in the next row with each letter in the middle of every box after every try. It took some time to figure out how to allow the text that was being typed to be in the middle of the boxes. Programming the yellow colored box was difficult since we had to compare the letter to the desired word and see if this letter was in the word but not in the position it is in the word.

What we learned

We learned more about JavaFX since most of us did not know a lot about this.

What's next for Wordle for Java Terms

The next steps for this project would be to use an AI tool to generate random words instead of having the application use words from a file that we created.

The command to run the application is java --module-path javafx-sdk-11.0.2/lib/ --add-modules=javafx.controls Jordle

Built With

Share this project:

Updates