diff --git a/culinaryServer/culinaryServerCookSmoothie/task.md b/culinaryServer/culinaryServerCookSmoothie/task.md index bad4716..5b436c3 100644 --- a/culinaryServer/culinaryServerCookSmoothie/task.md +++ b/culinaryServer/culinaryServerCookSmoothie/task.md @@ -1,26 +1,26 @@ -The last recipe is a smoothie! Let's make a fruit smoothie with berries and oranges. -In this task we will make the `Smoothie` button live. +The last recipe is a smoothie! Let's make a delicious fruit smoothie with berries and oranges. +In this task, we'll make the `Smoothie` button live. -In this task it does not matter which of the collection we will use since we will use all the possible fruits. +Currently, it doesn't matter which collection we use since we'll be using all available fruits. As an example, you will use a list to implement the functions, but you can try a sequence afterward. In this task, you need to implement three functions in the `Smoothie.kt` file: -- `getFruitsForSmoothie`, which returns a list of fruits for the smoothie: +- `getFruitsForSmoothie` – returns a list of fruits for the smoothie: - - gets baskets of all possible fruits (see `FruitType` and `FridgeImpl.getBasketOf`) - - put each basket in the kitchen (see `KitchenImpl.put`) - - take from each basket `capacity` number of fruits (see `KitchenImpl.put`) (see `KitchenImpl.takeFromBasket`) - - and finally sort fruits by the amount of sugar (`sugarContent`) + - Retrieve baskets of all available fruits (see `FruitType` and `FridgeImpl.getBasketOf`). + - Place each basket in the kitchen (see `KitchenImpl.put`). + - Take the specified `capacity` of fruits from each basket (see `KitchenImpl.put`) (see `KitchenImpl.takeFromBasket`). + - Finally, sort the fruits by their sugar content (`sugarContent`). -- `cookSmoothie` - which accepts a list of fruits for the smoothie and cook them: +- `cookSmoothie` – accepts a list of fruits for the smoothie and cooks them: - - add each of them to the blender (see `BlenderImpl.add`) - - and blend them in the end (see `BlenderImpl.blend`) + - Add each fruit to the blender (see `BlenderImpl.add`). + - Blend the ingredients together (see `BlenderImpl.blend`).
![Current state](../../utils/src/main/resources/images/master/chef/states/smoothie.gif) -
\ No newline at end of file +