Chunky Blues — 8 of 59

Scott Hammack and Jessamin Yu

Release 2

Chapter 2 - Time

Definition: A time is morning if it is at least 6:00 AM and it is before 11:59 AM.

Definition: A time is afternoon if it is at least 12:00 PM and it is before 5:59 PM.

Definition: A time is evening if it is at least 6:00 PM and it is before 8:59 PM.

Definition: A time is night:

if it is at least 9:00 PM, decide yes;

if it is before 3:59 AM, decide yes;

if it is at least 4:00 AM and it is before 5:59 AM, decide yes;

decide no.

To decide whether the sun is out:

if the time of day is night, decide no;

else decide yes.

To say vague description of (x - a time):

say "[if x is morning]morning[else if x is afternoon]afternoon[else if x is evening]evening[else if x is night]night[else]fucked up[end if]".

To decide which number is the 12-hour part of (X - a time):

if the hours part of X is 0 or the hours part of X is 12:

decide on 12;

decide on the remainder after dividing hours part of X by 12.

Every turn when the minutes part of time of day is less than the 12-hour part of time of day and the location is not indoors:

if minutes part of time of day is 0:

say "Somewhere in the distance, a bell begins to chime. [run paragraph on]";

say "'BONG!'";