That reminds me of the 2005 ICFP contest (http://icfpc.plt-scheme.org/spec.html)