ICFP Programming Contest


The ICFP Programming Contest is an international programming competition held annually around June or July since 1998, with results announced at the International Conference on Functional Programming.
Teams may be of any size and any programming language may be used. There is also no entry fee. Participants have 72 hours to complete and submit their entry over the Internet. There is often also a 24-hour lightning division.
The winners reserve "bragging rights" to claim that their language is "the programming tool of choice for discriminating hackers". As such, one of the competition's goals is to showcase the capabilities of the contestants' favourite programming languages and tools. Previous first prize winners have used Haskell, OCaml, C++, Cilk, Java, F# and Rust.
The contests usually have around 300 submitted entries.

Past tasks

YearOrganiserDescription
1998Université de Montréal and Massachusetts Institute of TechnologyWrite a program that plays pousse, an odd variant of tic-tac-toe. Contestant programs were entered into a tournament to determine the first- and second-place program.
1999Harvard UniversitySize-optimize case statements.
2000Cornell UniversityImplement a ray tracer using a Postscript-like syntax.
2001INRIA RocquencourtSize-optimize an HTML-like markup language by removing unnecessary whitespace and tags, and so on.
2002OGI School of Science and EngineeringImplement robots playing a Sokoban-like game one against each other.
2003Chalmers UniversityImplement robots driving a car as fast as possible through different racing tracks.
2004University of PennsylvaniaDesign an ant colony that will bring the most food particles back to its anthill, while fending off ants of another species. The contest entry would output a state-machine description of the ant: in principle, entries could have been written by hand. Later the task was adapted into Ant Wars, a strategy and programming game where each participant is a species of ant. The participant then, in a language called Antomata, program a finite state machine to function as the brain of each ant. The ant brain then control the ant to find and collect food to bring to the home ant hill, to fend off attackers or making trails of pheromones.
2005PLT groupImplement "bots" for a "Cops & Robbers" game: contestants have to write the control program that guides a Robber-Bot through a quiet urban neighborhood on a mission to rob every bank without getting caught, and the control program for a Cop-Bot dedicated to stopping it.
2006Carnegie Mellon UniversityImplement a virtual machine that runs an operating system provided by the judges, and crack it using new programming languages with unconventional syntax and semantics, such as 2D and a version of BASIC using Roman numerals. Many puzzles were tiny versions or parodies of previous contests.
2007Utrecht UniversityImplement a 2-stage virtual machine that executes a DNA-like string to produce an image. Then, given an input string for this machine, find a prefix that when added to this string yields an image as close as possible to the given target image.
2008Portland State University and the University of ChicagoProvide a Mars rover control system that will guide it to a home base while avoiding obstacles and enemies.
2009University of KansasControl a satellite to move between specified orbits and rendezvous with other satellites.
2010Leipzig University of Applied Science, GermanyInternational Car and Fuel Production.
2011Tohoku University, JapanProgram a computer with 256 "slots" to outlast its opponent in terms of slots remaining at the end of the match. Submissions include executables that are entered into a two-phase tournament.
2012University of St Andrews, ScotlandProgram an AI for a Boulder Dash-like game.
2013Microsoft ResearchGuess the implementation of a blackbox function implemented in a simple functional language through querying a web service.
2014University of Oxford and Well-Typed LLPWrite AI programs for a pacman like game, in SECD machine instruction for pacman and 8-bit machine assembly instructions for four ghosts.
2015GaloisWrite an AI for Tetris-like game on a hexagon grid field that embeds secret phrases in the move sequence.
2016University of Electro-CommunicationsWrite an AI to solve abstract origami.
2017University of EdinburghWrite an AI for a game where players in turn claim route parts on the map and the one with the best coverage wins. There are also three extensions to the main game mode, any number of which can be enabled on a map.
2018Rochester Institute of TechnologyGenerate nanobot traces to construct, destruct, and reconstruct target 3D objects while minimizing energy used.
2019Yale-NUS College and National University of SingaporeWorker-Wrappers against Bit Rot.

Prizes

Prizes have a modest cash value, primarily aimed at helping the winners to attend the conference, where the prizes are awarded and the judges make the following declarations:
; First prize: ' is the programming tool of choice for discriminating hackers.
; Second prize:
' is a fine programming tool for many applications.
; Third prize: ' is also not too shabby.
; Winner of the lightning division:
' is very suitable for rapid prototyping.
; Judges' prize: are an extremely cool bunch of hackers.
Where a winning entry involves several languages, the winners are asked to nominate one or two.
The languages named in the judges' declarations have been:
YearFirst PrizeSecond PrizeThird PrizeLightning
1998CilkOCaml
1999OCamlHaskell
2000OCamlOCaml
2001HaskellDylan
2002OCamlC
2003C++C++OCaml
2004HaskellHaskell and C++Java and C++
2005HaskellDylanHaskell
20062DDAssembly
2007C++Perl
2008JavaML
2009C++JavaML
2010C++, Haskell, PythonSageMath
2011F#Shell and C++
2012C++OCamlJava
2013Java, C#, C++, PHP, Ruby and HaskellC++ and PythonC#, C++, bash, awk, sed and ExcelC++
2014HaskellC++PerlOCaml
2015C++, Java, C#, PHP, Ruby and HaskellC++, Python, JavaScriptC++C++
2016Java, C++, C#, PHP, HaskellC++, Ruby, Python, Haskell, Java, JavaScriptOCaml
2017C++C++OCaml
2018RustC++, Python, Ruby, JavaScript, bash and SQLOCaml
2019RustC++C++ and Haskell

Perennial Teams