Code sets up a game world

A program can tell a game to draw a character, show a path, and play a sound. It can also track points or remember which level a player has reached. 1 2

Rules guide what happens during play

When a player presses a button, the game reads that input and follows instructions for what to do. If the character touches a goal, the code might show a new level. 1 2

Game makers test what players can do

A tester might try walking into a wall, pressing two buttons together, or returning to an earlier level. These tests can reveal bugs, such as a character getting stuck or a score not changing. Fixing them helps the game follow its rules more reliably. 1 2