Beer function

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…