Beer function

on February 21, 2012 in Fictionary Dictionary

beer( target string, your_xp(NOVICE, VETERAN, GURU), helper_xp(NOVICE, VETERAN,GURU) ) return result string;

  • string – the code you cocked up.
  • your_xp – your experience level.
  • helper_xp – experience level of the guy who found the mistake.

This function calculates the number of beers you owe the person who found your mistake.

NB The algorithm is a trade secret but don’t assume a “schoolboy error” will return a low number if your_xp is GURU…

Leave a Reply

Spam protection by WP Captcha-Free

Bad Behavior has blocked 90 access attempts in the last 7 days.

© 2009-2012 Chas Newport All Rights Reserved -- Copyright notice by Blog Copyright