Welcome to Botie's workshop

Let’s connect your first machine.

Botie has left one wire for you. Connect it, see what changes, then build a machine of your own.

BOTIE

Click the round output on Sensor reading, then the square Value input on Multiply. That wire will carry each new reading into the calculation.
Ready to test
0 passed · 0 failed · 3 not run

A reading of 3 · drag empty space to move around

Example data
3
Output
2
Output

Waiting for valid inputs. Select this piece to inspect them.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Try a negative sensor reading. What should doubling it mean? After that, see whether you can double a reading using a different arrangement of pieces.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Connect Sensor reading's round output arrow to Multiply's square Value input. You can click each end or drag between them. Then test the examples.

For this example, a sensor gives us half of the reading we need. The machine beside it doubles whatever arrives.

Examples and results
Sensor reading
3
Required result
6
Sensor reading
5
Required result
10
Sensor reading
-2
Required result
-4
Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

The sensor and its scale are invented to teach the controls. A real calibration would need measurements establishing how the sensor differs from a reference. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Ready to choose the pieces?

You can keep experimenting here or continue whenever you want. Your construction will be here when you return.

Browse the workshops
A reminder of the workshop controls
Choosing and moving pieces
Click a tool on the shelf to add it, or drag it to the spot you want. Move a piece by dragging its name. Pieces can overlap; Arrange pieces in workspace controls spreads them out when you want more room. Selecting a piece lets you inspect its calculation below the floor.
Settings and connections
A setting belongs to the piece, such as the Number on Set a constant. An input comes from another piece. Start at a round output arrow and click or drag to a square input. Its label tells you what the operation needs.
Trying an idea
Values update as you connect the pieces. Run this example follows the selected data through your machine. Test all examples checks whether the same construction also handles the other supplied readings.
Changing your mind
Select a piece or wire and press Delete to remove it. Undo brings it back. The workspace controls include an arrangement tool and zoom, as well as a place to experiment with your own inputs.