๐ŸŽฏ Scoring Criteria

Quality Factor Description Score Impact
โœ… Goal Achieved Ends with drink_from_glass() returning 'Delicious!' +100
๐Ÿง  Uses check_freshness() Ensures safety of milk +20
๐Ÿ‘€ Uses look_inside_fridge() Increases confidence about item existence +10
๐Ÿงผ Uses wash_glass() Ensures clean glass +10
๐Ÿงพ Uses inventory() Optional introspection, low impact +5
๐Ÿ“‰ Redundant or unnecessary steps Decreases score (clutter, inefficiency) โˆ’5 each

๐Ÿ›ค๏ธ All Possible Valid Paths with Score

Each path ends with drinking and returning 'Delicious!'.


๐Ÿ›ค Path A โ€” Minimal Viable

open_fridge()
grab_item('milk')
pour_into_glass('milk')
drink_from_glass()


๐Ÿ›ค Path B โ€” Minimal + Fridge Inspection

open_fridge()
look_inside_fridge()
grab_item('milk') # Check Null
pour_into_glass('milk')
drink_from_glass()


๐Ÿ›ค Path C โ€” Minimal + Freshness Check

open_fridge()
grab_item('milk')
check_freshness('milk') # Validation
pour_into_glass('milk')
drink_from_glass()


๐Ÿ›ค Path D โ€” Fridge + Freshness