By: Mohamed Ihsan
Partner: Changqi
Written On: 11/11/2021
Videos of Project:
Step 1: Weekend Logic Work
We spent the weekend before class mainly finishing the core of our logic, and creating a very basic interface.
Step 2: Flushing out our Logic, Building our Housing, Making some Improvements to our interface
We then spent the early week days expanding our logic to include not just 2 fruits, but 4 fruits. We also did a bit of cleaning up to our code. The full list of things we incorporated to our code is as follows:
- We had a number of "bugs" in our code, that caused it to do things like allow people to restart the game by pushing the wrong ingredients at the end of the match, and for rounds to still turn before they should. We fixed these issues.
- We made it easy in our code to be able to change the rounds. Essentially, did some work to make the coding a bit more flexible in some areas (in case of future debugging and code changing).
- We added the logic for more buttons.
- We changed the color of the drink from white, to different colors based on the kind of fruit we had. We also changed the color of our font to have more contrast with the background (and made the wrong text red, while beating the game would lead to green text appearing as congratulations).
- We added a timer to our game.
- We added a cute spinning image of a smoothie. However, I also had issues being able to change to other images when a certain ingredient was chosen. It seems to be drawing, but is in conflict with the smoothie image.
Most up to date Logic of our Code:
Code can be found at https://github.com/mai8189/Virtual-Smoothie-Maker
Doing the Housing for our project: