๐Ÿ“œ Challenge Description

John is thirsty and wants to drink milk from the fridge.

Your mission is to write a Python script using the provided functions to complete this task.

The level has multiple possible paths to solve it. Your solution will be scored based on:

Some functions are optional, like check_freshness() or look_inside_fridge(), but using them adds quality and increases your score.

Also note: A single level can include multiple challenges, and each challenge can be solved in multiple ways.


๐Ÿงฐ Provided Functions

All functions are predefined and behave as described.

Function Description Optional Score Impact
open_fridge() Opens the fridge so John can interact with its contents โŒ Required (0)
look_inside_fridge() Lets John inspect the contents before grabbing anything โœ… +10
grab_item(item_name) Picks an item (e.g.,"milk") from the fridge โŒ Required (0)
check_freshness(item_name) Checks if the milk is fresh โœ… +20
wash_glass() Cleans the glass before use โœ… +10
pour_into_glass(item_name) Pours the milk into a clean glass โŒ Required (0)
drink_from_glass() Makes John drink and return'Delicious!' โŒ +100 (goal)
inventory() Lists what John currently has (glass, milk, etc.) โœ… +5

๐Ÿงช Objective

Create a valid script that ends with:

<aside> โ„น๏ธ DELICIOUS!

</aside>

Then, explore multiple possible paths and assign a score to each based on their safety and efficiency.


๐Ÿงฎ Scoring Criteria