This tool was developed as an entry for the Diginext contest, allowing users to create and customize smoothie recipes based on available ingredients.
- Predefined Smoothie Recipes: Offers a selection of classic smoothie recipes with specific ingredients.
- Customization Options: Enables users to modify existing recipes by adding or removing ingredients.
- Ingredient Management: Provides functionality to handle ingredients efficiently.
Smoothie Name | Ingredients |
---|---|
Classic | strawberry, banana, pineapple, mango, peach, honey, ice, yogurt |
Forest Berry | strawberry, raspberry, blueberry, honey, ice, yogurt |
Freezie | blackberry, blueberry, black currant, grape juice, frozen yogurt |
Greenie | green apple, kiwi, lime, avocado, spinach, ice, apple juice |
Vegan Delite | strawberry, passion fruit, pineapple, mango, peach, ice, soy milk |
Just Desserts | banana, ice cream, chocolate, peanut, cherry |
The program accepts input in the following format:
SmoothieName,[+ingredient1,-ingredient2,...]
- SmoothieName: The name of the predefined smoothie (e.g.,
Classic
). - +ingredient: Ingredient to add to the smoothie.
- -ingredient: Ingredient to remove from the smoothie.
Examples:
Input | Expected Output |
---|---|
Classic |
banana, honey, ice, mango, peach, pineapple, strawberry, yogurt |
Classic,-mango |
banana, honey, ice, peach, pineapple, strawberry, yogurt |
Just Desserts |
banana, cherry, chocolate, ice cream, peanut |
Just Desserts,-ice cream |
banana, cherry, chocolate, peanut |
Just Desserts,-ice cream,-banana,+peach |
cherry, chocolate, peach, peanut |
Vegan Delite,+ice cream,-ice |
strawberry, passion fruit, pineapple, mango, peach, soy milk, ice cream |
-
Clone the Repository:
git clone https://github.com/hasanmova/Smoothie-Maker.git
-
Navigate to the Project Directory:
cd Smoothie-Maker
-
Run the Program:
python smoothie_maker.py
- Python 3.x
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, feel free to open an issue or contact me directly.