Logic and arithmeticAges 8–145 levels

Number Wizard

The wizard’s machine changes numbers. Work out its secret rule and build your own.

How to play

Goal: Build a function machine that turns every input into the right output.

Controls: Use the drop-down menus to build your rules, then run the tests.

What you'll learn: A function takes an input, follows a rule, and gives an output. Finding the rule from examples is how scientists and programmers test ideas.