Programmers understand that a computer program will often reuse code to minimise the memory required within the hardware. One of the ways that it does this is by using processes called Functions. Functions are snippets of code which can be 'called' by a program again and again.

Play LightBot and LightBot 2.0 to learn the basics idea of functions.
The aim of the game is to program the robot to light up all of the blue lights by walking, jumping and turning.

Light-Bot 2.0