boolean foundLove = false;
Man phil = new Man();
Woman rita = new Woman();
while (!foundLove)
{
Day today = new Day();
new Song("I Got You Babe").play();
today.wakeTheGroundhog();
switch (phil.getMood(today))
{
case "love" :
foundLove = phil.triesToGet(rita);
break;
case "joyful" :
phil.helpsPeople();
break;
case "sexual" :
phil.tricksAWomanToSleepWithHer();
break;
case "thirstForKnowledge" :
phil.learnsSomeStuff();
break;
case "suicidal" :
phil.killsHimself();
continue;
}
phil.goesToBed();
}
Man phil = new Man();
Woman rita = new Woman();
while (!foundLove)
{
Day today = new Day();
new Song("I Got You Babe").play();
today.wakeTheGroundhog();
switch (phil.getMood(today))
{
case "love" :
foundLove = phil.triesToGet(rita);
break;
case "joyful" :
phil.helpsPeople();
break;
case "sexual" :
phil.tricksAWomanToSleepWithHer();
break;
case "thirstForKnowledge" :
phil.learnsSomeStuff();
break;
case "suicidal" :
phil.killsHimself();
continue;
}
phil.goesToBed();
}