Tuesday, February 22, 2011

While Awake

After finishing a day's work, this starts to happen (exceptions are friday and saturday).

if (time > midnight)
    while(awake)
    {
        tiredness++;
        if (tiredness > 100)
        {
            awake = false;
            sleep(); // will eventually reset tiredness and thinking skills
            return;
        }
        if (tiredness > 50)
            thinking_skills--;
    }

Something like that.  The problem is, I'm tired, so my thinking skills are steadily decreasing at the point of writing this.  So I can't be sure if what I'm saying is sensible.  Oh, and cats are cute.

No comments:

Post a Comment