Inspiration
We were inspired by the https://www.seaturtlestatus.org/sea-turtles-plastic-pollution article and how we could mix facts with a game to bring more attention and excitement towards real life problems like the sea turtles dying.
What it does
It asks a series of question at random from a dictionary with question, answer, and 3 other incorrect choices. every correct answer gets you + 1 in score and wrong answers - 1 in score. once the timer runs out you are stopped
How we built it
It uses Flask to make a web page that was designed with HTML and CSS/java to make submit buttons, timer, and session score.
Challenges we ran into
I tried to make score without using session module and the score was incredibly hard to fix after it kept saying "undefined" . Also upon making the timer it kept moving the whole screen to the left which made the app look unorganized and was needed to be fixed. Also the score was blocking the submit button from Java script to get the new question so code clean up was needed. Also graphics was a much needed lesson and we still aren't entirely happy but it was the best we could have done.
What we learned
We learnt how to build score and timer in web pages and how flask is the way web pages are created.
What's next for Plastic Trivia
We hope to continue with more graphics as that was a grey area for us.
Built With
- html
- javascript
- python
- style.css
- visual-studio-code