Skip to content
  1. Home
  2. Games
  3. Math Games
  4. Function Machine

Function Machine · Math game for kids

Function Machine

Put numbers into the machine and note each result. Work out the pattern, set the rule, and in later levels plot the points and move the line to fit them.

Ages 10+20 levels🔊 Sound🗣️ Voice
👶 Ages 10+ 🏁 20 levels 🔊 Sound effects 🗣️ Read aloud 📱 Works on tablets 🆓 Free, no sign-up

A free function machine game for ages 10–13. Send numbers through a hidden rule, complete tables, work out y = ax + b and drag a line onto plotted points.

What happens in the game

At the center of the screen sits a purple machine holding a hidden rule. Your child drags a yellow number into it, or simply taps the number. The gears turn and an answer drops out. Every run lands in a table of x and y values. Once a few rows are filled, a pattern usually appears. Your child then sets up the rule with the arrow buttons and presses Test my rule. A wrong guess is not left hanging, because the machine runs a number on which the guess and the real rule disagree, and that gives a clue.

Level range Task
1–3 Rules with one step: add, subtract or multiply
4–6 Rules with two steps, written y = ax + b
7–8 Fill in the missing outputs of a table
9 Go in reverse to recover missing inputs
10–12 Mark the table’s points on a grid, then drag the line through them
13–15 Match a dotted target line by setting slope and intercept, adding half steps and negative values as levels pass
16–18 Multipliers that are negative or fractions
19–20 Closing levels that blend all three kinds of task

A level holds three puzzles. Stars drop with wrong guesses, but no level can be lost.

What it practices

Spotting patterns. Noticing that y rises by 3 each time x rises by 1 is the central insight of linear functions. The game nudges children to feed inputs in order (1, 2, 3), which makes patterns easier to see, and that habit helps with any table question.

Undoing steps. Asking “what went in to give 17?” means reversing the operations in the opposite order: subtract first, then divide. It is the same thinking used when solving equations.

Tables and graphs together. Plotted points fall on a straight line. Moving the sliders then reveals what slope and intercept do: b shifts the line up or down and a tilts it. A negative slope leans downhill, and a fractional slope climbs gently.

Learning from a miss. The machine answers a wrong guess with a counterexample. That models what scientists and programmers do all the time: test an idea against evidence, then adjust it.

Support at home

  1. Propose a tidy order. Stuck? Try 0, 1, 2, 3 in turn. The answer for 0 is b, and the difference between neighbouring answers is a.
  2. Look at the counterexample together. After a miss, ask what it shows: the rule said 9 and the machine said 11.
  3. Turn the line into a story. A line that starts at 2 and climbs 3 a step could be “2 stickers to begin with, 3 more each day.” A story makes slope feel natural.
  4. Be patient with reverse levels. They are harder than they look. Writing the steps down (“× 3, then + 2” turns into “− 2, then ÷ 3”) makes it easier.

Away from the screen

Be the machine yourselves. One person invents a hidden rule and replies to each number the other calls, until the rule is guessed, and then you swap. To practice graphs, take squared paper and plot a real case, such as the price of 1, 2, 3 or 4 bus tickets with a fixed fee added, and link the dots using a ruler.

Where children slip

  • One pair is not enough. x = 2, y = 5 fits several rules (x + 3, 2x + 1, 3x − 1), so try another pair too.
  • Mixing up the sequence. Multiplying by 2 and then adding 3 is not the same as adding 3 first and then doubling.
  • Slope or start? In y = 2x + 5 the line starts at 5 on the y-axis and then rises by 2 for each step to the right.

Frequently asked questions

How does a function machine work?
Picture a box with a secret instruction inside. You feed in a number, the box applies its instruction, say "double it and add 1", and another number comes out. Matching inputs to outputs to guess the instruction is just what a school function table asks for.
What do the letters in y = ax + b mean?
This formula covers every straight-line pattern. Letter a is the slope: the jump in y for each step of 1 in x. Letter b is the starting height, the value of y at x = 0, where the line cuts the y-axis. Both ideas are built up slowly in the game before any graph shows up.
Which school grades fit this game?
Think grades 5 to 8, so ages 10 to 13. A keen 9-year-old can try the one-step rules in levels 1 to 3, whereas the graphing levels with negative and fractional slopes belong with pre-algebra and early algebra.
Why mark the points first and use sliders afterwards?
Marking the table first demonstrates that a linear rule always lands on a single line. The sliders then show how each number in y = ax + b shifts or tilts that line, and graphs lose their mystery.

More games like Function Machine

All math games →