Game programming in a primary school
Primary pupils create their own video game using Scratch, a free programming toolkit from MIT. Programs are written to control objects (sprites) moving on a stage by joining command blocks together. The programs can include repetition, response to input such as the mouse and other outputs, such as sound.
The toolkit allows pupils to develop their programs to pursue their own creative ideas. A variable allows the program to keep track of the score in the game, with if/then (selection) statements determining how the score changes. Additional sprites can make the games more complex. Thinking through the problem logically makes it easier to avoid mistakes in the programming.