Our class had an assignment for probability, in which we used a cheap version of the game Zombie Dice. My friend made a program to calculate the average amount of brains you got per roll on scratch, but it was incredibly inefficient simply because it had a good User Interface. I then made my version of his program with an incredibly crappy U.I., but it is largely faster and more efficient.
All my own code.