Name: Anonymous 2010-10-31 16:09
Happy Halloween
Have an unscientific and ultimately destructive day.
/prog/.Have an unscientific and ultimately destructive day.
/prog/.bool trick_or_treat(bool trick, bool treat)
{
if (trick == true)
return trick;
else
return treat;
}
void visit_house(struct house *h)
{
bool trick, treat;
if (knock(h->door) == K_OPEN) {
ask(&trick, &treat);
if (trick_or_treat(trick, treat) == treat)
collect_treats(house->host);
else
goto tp;
} else {
tp: tp_house(h);
}
}