← Posts / Issue 001

When cheating at a game becomes a child’s first programming lesson

I wanted to give my children the fun of changing a game without the hooks of the market. The cheat menu became a small programming environment.

Browser-generated narration · voice varies by device

I wanted to give my children the gimmicks without the hooks.

Games are very good at creating desire. There is always another reward, another upgrade, another reason to return. The cleverness is impressive, but I did not want every playful moment to arrive attached to an account, an advertisement, a purchase or a system designed to keep a child inside it.

I wanted something smaller: games that could simply be played, changed and understood.

I also wanted to give my children what I can only describe as god-level control. Not just a choice between easy and hard, or a new costume selected from a menu. I wanted them to be able to alter the rules themselves—to make the character impossibly fast, weaken an opponent, change gravity, enlarge a drawing tool or turn a sensible game into something ridiculous.

From the player’s side, this looks like cheating.

From the builder’s side, it is development.

That gap became the idea behind Play & Code.

The cheat menu is the lesson

Play & Code is a collection of nine small browser games. Each one works offline. There are no accounts and no advertisements. A child can open the game and begin without entering a marketplace disguised as a playground.

Behind each game is a Game Master Lab. It presents a few controls connected to real values inside the game: speed, gravity, damage, growth, brush size, steering, opponent strength and other rules that shape what happens on the screen.

Move a slider and the game changes immediately.

The child does not need to begin with the word “variable.” They can begin with a question: what happens if I move this all the way over here?

That question contains more programming than it first appears to.

There is a named value. The value has a current state. Changing it causes a visible effect. The child forms an expectation, makes a change, observes the result and decides whether to change it again.

That is a tiny experiment. It is also the beginning of debugging.

The lesson does not interrupt the play. The play reveals the lesson.

God mode changes the relationship

Ordinary game settings treat the player as a consumer. The designer offers several approved experiences: easy, normal, hard. Perhaps there is a sensitivity slider or an accessibility option. These are valuable, but the relationship remains the same. The rules belong to the game; the player selects from the choices provided.

God mode says something different. The rules are made from values, and those values can be touched.

Once a child sees that, a game stops looking like a sealed object. The speed of a kart is not a law of nature. Someone selected that number. Gravity is not simply “how this world works.” It is an instruction in the system. The strength of an opponent is not a fact about the opponent; it is a design decision.

The first lesson of programming is not syntax. It is that digital worlds are made from choices.

My daughter enjoys the cheating part. That is not a failure to reach the educational content. It is the route into it. The desire to make the game behave differently creates a reason to find the control behind the behaviour.

My son loved Scratch and has now moved into Python. That progression did not begin with a lecture about software engineering. It began with the pleasure of making something happen and knowing that he had made it happen.

Scratch understands this well. Its creators designed it so that people could make interactive stories, games and animations, not merely complete programming exercises. The code has a purpose because it changes something the learner cares about.

Play & Code follows the same spirit in a narrower space. First, play the game. Then change the game. Then notice that the thing being changed has a name.

From slider to code

The Game Master Lab begins with sliders because a slider makes cause and effect obvious.

The next step is a small code box. A child can type an assignment such as:

brushSize = 3

or:

gravity = 2

The same value that could be moved with a control can now be addressed by name. The game responds, and the child sees that the text is not a description of what might happen. It is an instruction the system obeys.

The code box deliberately understands only a small language: approved variable names, numbers, brackets and basic arithmetic. It does not execute arbitrary JavaScript. A handwritten parser checks the instruction, values are kept within ranges the game can handle, and mistakes produce a gentle explanation instead of a broken page.

That limit is important.

An unrestricted editor may look more like “real programming,” but it gives a beginner too many unrelated problems at once. They would have to deal with syntax, browser behaviour, security and the possibility of destroying the state they were trying to explore.

The smaller language preserves the useful question: what happens when this value changes?

It also keeps the cheat playful. A child can make the kart absurdly quick or the jump comically powerful, then reset the values and begin again. The experiment can be wild without becoming unrecoverable.

Safe does not have to mean passive

Software for children is often made safe by removing power. The child is allowed to follow a prepared route, press approved buttons and arrive at an approved result.

I wanted another kind of safety: real control inside a deliberately bounded system.

The games work locally. They do not need a login or a network connection. The mini language knows only the game’s own variables. Values are clamped. Saves remain on the device. Reset is always available. Across all nine games, a shared standard defines touch sizes, audio behaviour, storage, gentle failure and how the Lab should work.

The boundary is firm, but the space inside it belongs to the child.

That matters because agency is part of the learning. If every experiment has already been anticipated and cleaned up by an adult, the child is completing an activity. When the child can make an ugly, unfair or ridiculous version of the game, they are authoring a system.

Cheating becomes design.

Suppose an opponent is too difficult. The normal answer is to reduce the difficulty setting. The Game Master answer is to inspect the values. Should the opponent have less health? Should the player do more damage? Should movement become faster? Each choice solves the immediate problem differently and changes the feel of the game.

That is not only a lesson about variables. It is a lesson about systems. Several causes can produce a similar outcome, and choosing between them is part of design.

Children expose weak design quickly

Adults are often generous to software. We read instructions, tolerate awkward wording and assume that confusion is our fault.

Children are more direct. If the feedback is unclear, they move on. If a control does not respond, they press it again. If experimentation is punished too sharply, curiosity disappears. If the game never allows anything surprising, the lesson starts to feel like homework.

This makes children demanding and useful design critics.

The games need to respond immediately enough for cause and effect to remain connected. Error messages need to help without becoming lectures. Failure needs to be real enough to teach something but gentle enough to invite another attempt. Controls need to be large, consistent and understandable on the devices children actually use.

The same principles apply to software for adults. We also benefit from visible state, useful errors, recoverable experiments and tools that explain their boundaries. Children simply make it harder to hide bad interaction behind professional language.

Learning so they can build

I am not trying to trick my children into a career.

Programming is useful, but the deeper reason to expose it is not that every child should become a software developer. It is that software now shapes a great deal of their world, and I want them to experience it as material—not magic.

A child who understands that a game contains variables has learned something about every digital system. Behaviour comes from instructions. Defaults are choices. Interfaces reveal some controls and conceal others. A rule can be inspected, questioned and changed.

My son’s path from enjoying Scratch to learning Python is one version of that journey. My daughter’s delight in the “cheating” is another. One is not more authentic than the other. Both begin with agency.

Play & Code gives them a small world where the power is visible and the commercial hooks are absent. They can play first, open the machinery when curiosity appears, and discover that changing the rules is not outside the game.

It is how the game was made.

And perhaps that is the first programming lesson worth keeping: before children learn the proper way to write code, let them feel what it is like to make a system answer back.

Give them the controls. Let them cheat. Then show them that they have already begun to build.

Source notes

  • Play & Code contains the nine offline games, the shared game standard and the Game Master Lab implementation. The live collection can also be played in a browser.
  • Mitchel Resnick and colleagues, “Scratch: Programming for All” , describe Scratch’s aim of helping people create interactive stories, games, animations and simulations while developing creative and systematic thinking.
Return / Issue 001Five harnesses later↗