Sunday, July 12, 2009

01A - Diana Perez - Make capuccino


function fillBoiler:
with cup
fill with coldMilk
get boiler
place boiler right to cup
with cup
move 20cm up
turn -90°
if cup = „empty“
turn 90°
move 20cm down
execute function boilMilk

function boilMilk:
get boiler
put boiler on heater
turn heater.switch to „on“
desiredTime = 5min
when desiredTime:
turn heater.switch to „off“
execute function putCapuccino

function putCapuccino:
get cup
desiredCapuccino = 2
desiredSugar = 2
execute function fillCup

function fillCup:
get cup
place cup right to boiler
with boiler:
move 20cm up
turn -90°
if cup = „full“
with boiler:
turn 90°
move 20cm down

finish

No comments:

Post a Comment