Inspiration 🌎

There were numerous factors that influenced us to develop this concept. The main reason is to create a fun but puzzling game for users to play but also learn something from it. Since a lot of people enjoy playing games during their free time, we decided to combine the concept of learning with gaming to create this project. With the hopes, others will learn something from the game while having fun!

What does it do 🤔

To begin, when the program is run, it picks a random 5-letter word that fits the theme of environmental consumption and production. The user's objective is to guess what that five-letter word maybe by entering letters into the grid via the on-screen keyboard. Letters that are in the world and are in the correct spot will then turn green, letters that are in the word but in a different spot will be yellow, and letters not in the word of the day will be gray. The user is given 6 tries to guess the correct word and if they get it correctly. Both an alert will pop up telling them a fact relating to the word and their score will go up!

How we built it 🔨

We created an express server that served a game inspired by wordle on the slash route. We created the environmental word find game by looking closely at the rules of Wordle, then using event-driven javascript and DOM mechanics to handle the user typing in letters and handling words. Instead of an API, we used a test file containing common 5-letter words in the English dictionary and created an array of those words. The index.html showed the wordle game, while the main.js file handles the logic behind the game and events.

Challenges we ran into 🔎

  • The same word being chosen more than two times in a row
  • Positioning of buttons and other elements

Accomplishments that we're proud of 💪

The program works!!

  • We found creative/innovative solutions to the problems we faced

What we learned 🧠

  • How to allow users to input multiple guesses in one play session
  • How irresponsible consumption and production hurts the world and what we can do about it.
  • Adding components and further styling

What's next?! ⏩

  • Find a way to incorporate alerts into the game itself
  • Add different levels of difficulties, which can be done by adding features like a timer
  • An option for hints, if users are having a hard time guessing the word
Share this project:

Updates