A free function machine game for kids 10–13. Feed numbers in, crack the rule y = ax + b, fill input-output tables, plot points and match lines with sliders.
How to play Function Machine
A purple machine sits in the middle of the screen with a secret rule inside. Your child drags a yellow number into the machine (or simply taps it), the gears spin, and an output pops out. Every run is recorded in an x and y table. After a few runs the pattern starts to show, and your child builds the rule with the arrows and presses Test my rule. If the guess is wrong, the machine runs a number where the guess and the hidden rule disagree, so there is always a clue to work with.
| Levels | What happens |
|---|---|
| 1–3 | One-step rules: add, subtract or multiply |
| 4–6 | Two-step rules of the form y = ax + b |
| 7–8 | Predict missing outputs in a table |
| 9 | Work backwards to find missing inputs |
| 10–12 | Plot the table on a grid, then slide the line onto the points |
| 13–15 | Match a dashed line using slope and intercept sliders, with half steps and negatives later |
| 16–18 | Rules with negative or fractional multipliers |
| 19–20 | Master mix of rules, tables and graphs |
Each level has three puzzles. Stars depend on wrong guesses along the way, and a level is never lost.
What your child learns
Pattern finding. Spotting that y goes up by 3 every time x goes up by 1 is the key insight behind linear functions. The game encourages testing inputs in order (1, 2, 3) to make the pattern easier to see, a strategy children can use in any table problem.
Inverse operations. Working backwards from an output (“what went in to get 17?”) means undoing the steps in reverse order: subtract first, then divide. This is the same reasoning used to solve equations.
Connecting tables and graphs. Plotting the table shows that the points lie in a straight line. Moving the sliders then shows what slope and intercept mean: b slides the line up and down, a tilts it. Negative slopes tilt downward, fractional slopes rise slowly.
Testing ideas. A wrong guess is not a dead end. The machine replies with a counterexample, which teaches a habit that scientists and programmers rely on: test your idea against the evidence and adjust.
Tips for parents
- Suggest inputs in order. If your child is stuck, try 0, 1, 2, 3. The output for 0 reveals b, and the jump between outputs reveals a.
- Talk about the counterexample. When a guess fails, ask “Your rule said 9, the machine said 11. What does that tell you?”
- Make the graph a story. A line starting at 2 and rising 3 each step could be “start with 2 stickers, earn 3 every day.” Stories make slope feel natural.
- Do not rush the backwards levels. Working backwards is harder than it looks. Writing the steps on paper (“× 3, then + 2” becomes “− 2, then ÷ 3”) helps a lot.
Offline activities
Play “human function machine”: one person secretly picks a rule, the other calls out numbers and gets answers, then guesses the rule. Take turns. For graphing, plot the points of a family rule (for example the cost of buying 1, 2, 3 or 4 bus tickets plus a fixed fee) on grid paper and connect them with a ruler.
Common mistakes
- Only looking at one pair. x = 2 and y = 5 fits many rules (x + 3, 2x + 1, 3x − 1). Always check a second pair.
- Mixing up the order of steps. “Multiply by 2, then add 3” is not the same as “add 3, then multiply by 2.”
- Reading slope as the starting point. In y = 2x + 5 the line starts at 5 on the y-axis and climbs 2 for every step right.