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

Function Machine · Math game for kids

Function Machine

Drag or tap numbers into the machine and record what comes out. Spot the pattern, build the rule, and later plot the points and slide the line into place.

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 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

  1. 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.
  2. Talk about the counterexample. When a guess fails, ask “Your rule said 9, the machine said 11. What does that tell you?”
  3. 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.
  4. 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.

Frequently asked questions

What is a function machine?
It is a simple way to picture a function. A number goes in, the machine follows a rule (for example "multiply by 2, then add 1"), and a number comes out. Children use the inputs and outputs to work out the hidden rule, which is exactly what a function table asks in school.
What does y = ax + b mean?
It is the rule for a straight-line pattern. The number a tells how much y changes each time x goes up by 1 (the slope), and b is the value of y when x is 0 (where the line crosses the y-axis). The game builds this idea step by step before introducing the graph.
Which grades is this game for?
It fits roughly grades 5 to 8 (ages 10 to 13). Levels 1 to 3 use one-step rules that a confident 9-year-old can handle, while the graphing levels with negative and fractional slopes match pre-algebra and early algebra courses.
Why plot the points before using the sliders?
Plotting the table first shows that the points of a linear rule always line up. Then, moving the slope and intercept sliders, children see how each number in y = ax + b changes the line, which makes graphs far less mysterious.

More games like Function Machine

All math games →