A Programmer’s Day Off

Having a summer vacation? Spend your day like a pro!

#include "useless_variables_and_functions.h"

#ifdef DAY_OFF

#include <good_friends.h>
#include <a_guitar.h>
#include <booze.h>

#endif

using namespace nothing;

int main(){

  wake_up(NULL);

  HOME:
    if(hours != TOO_MUCH){

      advance_time(10);
      broke = FALSE;
      get_cash(ENOUGH);
      goto BAR;

    }

    else{
      goto BED;
    }

  BAR:
    while(bar_open){
      take_a_beer(ONE);
      advance_time(5_MIN);
      cash -= BEER_PRICE;
      guitar_skills++;
      if(cash == 0){
        broke = TRUE; 
        if(weather == GOOD){
          goto BEACH;
        }
        else{
          goto HOME;
        }
      }
      if(hours == TOO_MUCH){
        bar_open = FALSE;
      }
    }

  BEACH:
    while(guitar_skills > 0 && has_booze){
      play_a_rag();
      advance_time(5_MIN);
      take_booze();
      guitar_skills--;
      if(!passed_out){
        printf("Yeehaw!");
        continue;
      }
      else{
        printf("Errr.....");
        exit(-1);
      }
    }
    goto HOME;

  BED:
    sleep(14400);
    printf("Have a nice day!");
    return 0;
}
Advertisements

3 comments

  1. It’s not gonna happen this time 🙂

    Like

  2. moshows · · Reply

    Does this compile ? 🙂 Like the idea.

    Like

    1. Well, it compiled pretty well when I was on vacation… Needs to implement the header include at least!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: