Game 1: Snake
This is a simple Snake game clone by Jan Bodnar, originally from zetcode.com
Use the arrow keys to control the snake to collect the food.
The original code used images for the parts of the snake and the apple that the snake eats. I haven’t added image support yet so I’ve changed the game to use coloured rectangles instead.