The MagPi has just published a fun little tutorial which gives you the code for “The Bedrock Challenge”. In Minecraft Pi Edition, the Python code generates a random, invisible arena with holes in the floor that you must avoid to prevent yourself from plummeting to your death. The only help you have is an LED that lights up when any of the blocks surrounding you are empty air. The code and wiring diagram for the LED is available here.