Setting the Mood
mood = function( successes, failures, interactions, day)
if ( successes > failures )
mood = rainbows & unicorns;
else
mood = dungeons & dragons;
for each +interaction
mood = mood + joy;
for each -interaction
mood = mood - joy;
switch ( day )
case Monday:
mood = mood - all_good_things;
break;
case Tuesday:
mood = mood - meetings;
break;
case Wednesday:
mood = no_change;
break;
case Thursday:
mood = mood + light_at_the_end_of_the_tunnel;
break;
case Friday:
break;
case Weekend:
mood = party_like_a_rock_star;
end
Why are you so brilliant, though?