Inspiration
We were inspired by the popular game "Wordle" that is currently taking the internet by storm. People are expanding on their vocabulary every day in a fun and engaging format, so we took after that and created a game with daily trivia challenges.
What it does
This is a game that loads new categories and questions daily. There are 5 questions (2 t/f and 3 multiple choice), each of them from one of 3 daily categories (i.e. physics, comp sci, history, etc.). You have room to get 2 questions wrong, but after that you exit and view your score. If you can do all 5 questions without using up all of your lives, then you you to the end screen, see your score, and even use the share button to copy your score to share.
How we built it
We built this in replit.com, using the HTML, CSS, and JavaScript files to make a site based on our code.
Challenges we ran into
The biggest issue was the randomization for the multiple choice questions. For the true false the answer choice buttons were always the same so it wasn't too big of an issue to use a map and a randomizer to set the question and correct answer, but it was much more difficult with the radio buttons and we managed to get to a point but ran out of time to continue it (namely the onBodyLoad function). In addition, we explored some margin formatting for the radio buttons, but we didn't have enough time to complete that formatting.
Accomplishments that we're proud of
Neither of our team members actually knew HTML, CSS, or JavaScript but were apt in Python and Java, so we used our existing coding knowledge to learn all the languages as we went. We managed to make a pretty functional trivia game despite that. We also spent some time developing a share button that works to copy a score in emojis to the clipboard. In addition, neither of us were free until 7 pm on the second day, so we got a lot done in the time crunch.
What we learned
We learned how to use the three languages HTML, CSS, and JavaScript entirely and a lot about web development.
What's next for Trivialé
We are almost done with randomization based on the date by accessing it through JavaScript, so once that is completed, we can finish the formatting and randomization for radio buttons (which we might change back to normal buttons to make things easier) and then we will compile all the questions we have. A lot of this is just adding data for questions and then the randomization takes care of the rest, so this project should be done and up and running within a week or 2.
Log in or sign up for Devpost to join the conversation.