Inspiration

We were inspired by our desire to make a fun yet somewhat challenging project. We brainstormed for a couple hours before deciding upon creating a Wordle-inspired program. We decided to take our inspiration from Wordle to the terminal. Rather than simply remaking it on the web, we took up the challenge of recreating it in the terminal, which proved to be a considerable challenge. Wurtle was a challenging yet fun application to develop, and was quite interesting to us.

What it does

Wurtle has the user guess a 5 letter word, which they have 6 tries to guess before they lose. Each time they choose the correct letter in the correct spot, that spot turns green. If they choose the correct letter but in the wrong spot, that spot is marked yellow. If neither the letter nor the spot is correct, that spot is marked white.

How we built it

We built Wurtle using Python, utilizing colorama, pyfiglet, requests, and termcolor to power the various colors and fonts we used to make the game a more fun experience. We used the Words API to provide an incredible amount of words to the player.

We separated each main function into it's own separate file to make it easier and more readable.

Challenges we ran into

We had many problems with the style libraries. We especially struggled with getting each word to be highlighted it's corresponding color, and display those alongside the previous attempts. We also had some trouble with getting the logic in general to work. Overall, our main issue were the color libraries, which in the end we were able to get to cooperate with us.

Accomplishments that we're proud of

We are very proud that despite the hours of struggling with getting our program to properly display what we wanted to, we are able to get it to do what we wanted and more. We are also quite proud that we were able to make a game that could potentially look dull in the terminal a fun experience. We have big, fun fonts and silly loading screens to accompany the general fun of the game that many people already are familiar with.

What we learned

We learned not only how to work with Python's color libraries, but we also learned that developing seemingly simple applications have their own challenge to them. Overall, we stayed very determined throughout the whole process, and really put our best foot forward in adapting to the many issues that kept coming our way. We had to scrap some parts of the code entirely and watch tutorials on new libraries and ideas that we had no prior experience with, and learned from said experiences. This hackathon in general has been a great learning opportunity, and has taught us how to work around tight and stressful deadlines.

What's next for Wurtle

We hope to further Wurtle by using Rich API's sister project, textual, to convert our terminal into a full blown application. This would include a full user interface, complete with buttons, an on screen keyboard, and everything else indicative of the famous game Wordle, with our own personal twists. Alternatively, we were also considering doing something similar with a website. Instead of just being on a terminal, Wurtle could potentially move to it's own domain. We also hope to expand the scope of the words beyond just normal words, and to something more thematic and fun.

Built With

  • colorama
  • pyfiglet
  • python
  • termcolor
  • words-api
Share this project:

Updates