Inspiration
I rarely see recycle bins in my neighborhood. People don't try to recycle because they quickly get confused on what to recycle and what not to. This app is meant to resolve this through a fun game.
What it does
With 5 rounds, including an introductory round, players will have an object and decide whether to recycle or trash it. Wrong answers do give negative points, and the accuracy is factored into the score. Get it wrong? A popup will explain why. If you do not get 60%, you cannot proceed. When done, you are allowed to restart the adventure.
How we built it
Using custom widgets from PyQt5, I was able to make a native Windows application styled after MacOS.
Challenges we ran into
The custom graphical interface was difficult to maintain, as I had to hardcode most of the window's functionality (moving it around, closing it, minimizing it, etc.) while focusing on the game.
Accomplishments that we're proud of
My designing and artistic skills are mediocre at best because I rarely practice. This game me a chance to learn to modify widgets and buttons and make the application aesthetically pleasing as a whole.
What we learned
This is one of the few times I have used classes in-depth. By using features such as self, class functions, and lambda functions, I was able to make the app run smoothly and communicate with each other.
What's next for Trash or Recycle?
The program was built to be expandable (adding more rounds and items) without modifying the code to a large extent. Because PyQt5 is cross-platform, I can test the app on more platforms to make it more reachable or publish it to the web. A GUI improvement for the welcome page would be aesthetically nice, too.
Built With
- pyinstaller
- pyqt5
- python
- qtdesigner
Log in or sign up for Devpost to join the conversation.