Tuesday 13 May 2014

Jogging algorithms

Wrote this as a comment on a g+ joke post about how geeks run.. So while I don't take credit for the idea, this was my take on the algorithm which I share now for posterity :)

for(int i = 0; i < routeSteps.length;i++){
do{
   jog()
}while(!stitch);
System.out.println("gasp!");
Panic() imLiterallyGoinToDie = new Panic();
System.out.println(disproportionateSwearWord);
}

Tea cuppa = new Tea();
System.out.println("never again");

//I spent WAY too much time on this

No comments:

Post a Comment