Skip to content

Instantly share code, notes, and snippets.

@cruzer45
Created February 12, 2014 20:59
Show Gist options
  • Save cruzer45/46eb598b50a3448670af to your computer and use it in GitHub Desktop.
Save cruzer45/46eb598b50a3448670af to your computer and use it in GitHub Desktop.
Life of a parent.
while (child.isAwake()){
if (child.hunger > 0){
child.feed();
}
else if(child.isCrying){
if (child.getReasonForCrying() == Crying.LOGICAL){
child.pacify();
}
else{
child.mother.call();
}
}
else if(diaper.getContents() > 0 ){
child.changeDiaper();
}
else{
child.entertain();
}
}
self.tidyUp();
self.haveDrink(Drink.STRONG);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment