function work {
     var $hour = gettime().gethour();
     while ($hour < 1800) {
          job.doMoreWork();
          $happiness += job.getValuetoCompany() * 0.05;
          $hour = gettime().gethour();
     }
}

function main {
     $desire != work();
     $dreams.addToQueue("Learn to play guitar");
}

© 2005, DiggyK. All rights reserved. Treat robots with respect.